123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- #ifndef NRF6350_H_
- #define NRF6350_H_
- #include <stdbool.h>
- #include <stdint.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define LCD_LLEN 16
- #define JS_BUTTON_NONE 0x00
- #define JS_BUTTON_LEFT 0x01
- #define JS_BUTTON_PUSH 0x02
- #define JS_BUTTON_DOWN 0x04
- #define JS_BUTTON_UP 0x08
- #define JS_BUTTON_RIGHT 0x10
- #define LCD_UPPER_LINE 0x00
- #define LCD_LOWER_LINE 0x40
- #define LCD_CONTRAST_LOW 0x00
- #define LCD_CONTRAST_MEDIUM 0x02
- #define LCD_CONTRAST_HIGH 0x08
- bool nrf6350_lcd_init(void);
- bool nrf6350_lcd_write_string(const char *p_text, uint8_t size, uint8_t line, uint8_t pos);
- bool nrf6350_lcd_clear(void);
- bool nrf6350_lcd_set_contrast(uint8_t contrast);
- bool nrf6350_lcd_on(void);
- bool nrf6350_lcd_off(void);
- bool nrf6350_js_get_value(int8_t *val);
- bool nrf6350_js_get_status(uint8_t *js_state);
- bool nrf6350_lcd_wake_up(void);
- #ifdef __cplusplus
- }
- #endif
- #endif
|