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.
Dependencies: EthernetInterface NTPClient mbed-rtos mbed
LedPanel.h
00001 /** 00002 * Matrix16x16 LEDPanel library 00003 * 00004 * @author Junichi Katsu 00005 * @version 1.0 00006 * @date 15-April-2015 00007 * 00008 */ 00009 00010 #ifndef MBED_LEDPANEL_H 00011 #define MBED_LEDPANEL_H 00012 00013 #include "mbed.h" 00014 #include "LedPanel_GFX.h" 00015 00016 #define HT16K33_BLINK_CMD 0x80 00017 #define HT16K33_BLINK_DISPLAYON 0x01 00018 #define HT16K33_BLINK_OFF 0 00019 #define HT16K33_BLINK_2HZ 1 00020 #define HT16K33_BLINK_1HZ 2 00021 #define HT16K33_BLINK_HALFHZ 3 00022 #define HT16K33_CMD_BRIGHTNESS 0x0E 00023 00024 /** LedMatrix8x8Driver class 00025 * @endcode 00026 */ 00027 00028 class LedPanel : public LedPanel_GFX 00029 { 00030 public: 00031 /** Create a LedPanel instance 00032 * 00033 * @param I2C 00034 */ 00035 LedPanel(I2C *i2c); 00036 void begin(uint8_t _addr0,uint8_t _addr1); 00037 void setBrightness(uint8_t b); 00038 void blinkRate(uint8_t b); 00039 void writeDisplay(void); 00040 void clear(void); 00041 00042 uint16_t displaybuffer[16]; 00043 00044 void init(uint8_t a); 00045 00046 virtual void drawPixel(int16_t x, int16_t y, uint16_t color); 00047 00048 void Scroll(int16_t x, int16_t y); 00049 00050 private: 00051 I2C *_i2c; 00052 uint8_t i2c_addr[2]; 00053 }; 00054 00055 #endif // MBED_LEDPANEL_H
Generated on Thu Jul 14 2022 17:34:26 by
1.7.2