- Added NHD_LCDstatus_t enum to NHD_LCD API:
- Google Gemini: Handling HAL status in STM32
- data_write and cmd_write, both of which call HAL_SPI_transmit(..) which returns HAL_StatusTypeDef, associate all of the possible HAL_statusTypeDef codes with a NHD_LCDstatus_t
- all functions within this API will have a return type of NHD_LCDstatus_t
- Changed name of comm_write() funtion in NHD_LCD to cmd_write (short for command) to reduce confusion
- Improved erase_trails() function logic:
- defined number of bytes needed to represent a character, number of columns in in the LCD screen and the number of character rows in the LCD screen
- Made erase trails a helper function of print_data, no longer directly callable from the mai function
Ghani Lawal
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.