takashi kadono
/
Nucleo_446
Color Oled(SSD1331) connect to STMicroelectronics Nucleo-F466
main.cpp
- Committer:
- kadonotakashi
- Date:
- 2018-10-11
- Revision:
- 2:018812000e6e
- Parent:
- 1:e396a61d2631
- Child:
- 3:f3764f852aa8
File content as of revision 2:018812000e6e:
#include "mbed.h" #include "ssd1331.h" Thread thread; void print_char(char c = '*') { printf("%c", c); fflush(stdout); } void print_thread() { while (true) { wait(1); print_char(); } } ssd1331 oled(D11,D12,D13,D10,D9,D8); int main() { printf("\n\n*** RTOS basic example ***\n"); thread.start(print_thread); oled.Initssd1331(); oled.ClearScreen(); oled.DrawRectangleFill(4,4,91,59,RGB565_GREEN,RGB565_YELLOW); while (true) { } }