0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

vistaでstm32duino その18

Posted at

概要

vistaでstm32duinoやってみた。
i2c master、やってみた。

サンプルコード

# include <Wire.h> 
# include "Lcd8574.h"

Lcd8574 lcd;
int i = 0;

void setup() {
	pinMode(PC13, OUTPUT);
	lcd = Lcd8574();
	lcd.begin(16, 2);
	lcd.print("012hello, world!");
}
void loop() {
	i++;
	lcd.setCursor(1, 0);
	lcd.print(i);
	digitalWrite(PC13, HIGH);
	delay(1000);
	digitalWrite(PC13, LOW);
	delay(1000);
}





以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?