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.
main.cpp
- Committer:
- andrey_als
- Date:
- 2018-02-11
- Revision:
- 0:79d0d21086e0
File content as of revision 0:79d0d21086e0:
#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) {
}
}