Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 0:79d0d21086e0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sun Feb 11 18:45:43 2018 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+#include "TextLCD.h"
+#define AddrDisp 0x4E
+
+//------------------------------------
+//STM32F030F4P6
+
+//------------------------------------
+
+I2C i2c_lcd(D5,D7); //SDA - D5(PB_4), SCL - D7(PA_8), (I2C_SDA,I2C_SCL);
+
+//Инициализация дисплея
+//Изменить в TextLCD_Config.h #define LCM1602 1
+//TextLCD_I2C lcd(&i2c_lcd, AddrDisp, TextLCD::LCD16x2);
+
+int main()
+{
+ i2c_lcd.frequency(400*1000);
+ //lcd.setBacklight(TextLCD::LightOn);
+ //lcd.setCursor(TextLCD::CurOff_BlkOff);
+ //lcd.printf("Hello World!\n");
+ //lcd.printf(" Привет Андрей!\n Hello word!"); //ЁёІікод символа в восьмеричной системе
+ while (1) {
+ }
+
+}
\ No newline at end of file