STM8S firmware template
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
King Kévin 42be544bad read address bits from GPIO 11 months ago
.gitignore initial firmware template 3 years ago
LICENSE initial firmware template 3 years ago
Makefile make: allow multiple source files 12 months ago
README.md doc: add project documentation 11 months ago
main.c read address bits from GPIO 11 months ago
main.h main: use header file 12 months ago
stm8s.h stm8s: fix data unlocking keys 12 months ago

README.md

STM8S003 firmware for the I²C to HD44780 adapter.

I²C commands (first byte).

simplified commands:

  • 0x0 INIT: initialize LCD, as 2-line, 5x8 dots, no blinking or cursor
  • 0x1 LINE1: write to line 1, followed by ASCII text
  • 0x2 LINE2: write to line 2, followed by ASCII text
  • 0x3 DISPLAY_ON: turn display on
  • 0x4 DISPLAY_OFF: turn display off
  • 0x5 BRIGHTNESS: set backlight brightness, followed by 0-255 value

raw instructions, directly mapping to HD44780, followed by instruction byte or data bytes if applicable:

  • 0x6 CLEAR_DISPLAY
  • 0x7 RETURN_HOME
  • 0x8 ENTRY_MODE_SET
  • 0x9 DISPLAY
  • 0xa CURSOR_DISPLAY_SHIFT
  • 0xb FUNCTION_SET
  • 0xc CGRAM_ADDR
  • 0xd DDRAM_ADDR
  • 0xe DATA