ctor u8x8 constructon

This commit is contained in:
olikraus 2015-12-12 19:11:28 +01:00
parent 4c9d11c0b7
commit f6302965e0
3 changed files with 15 additions and 10 deletions

View File

@ -67,15 +67,11 @@ class U8X8 : public Print
};
// constructor list start
class U8X8_SSD1306_128X64_4W_SW_SPI : public U8X8
{
public:
U8X8_SSD1306_128X64_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8()
{
u8x8_Setup_4Wire_SW_SPI(&u8x8, u8x8_d_ssd1306_128x64_noname, clock, data, cs, dc, reset);
}
};
class U8X8_SSD1306_128X64_4W_SW_SPI : public U8X8 {
public: U8X8_SSD1306_128X64_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
u8x8_Setup_4Wire_SW_SPI(getU8x8(), u8x8_d_ssd1306_128x64_noname, clock, data, cs, dc, reset);
}
}
// constructor list end

View File

@ -194,7 +194,7 @@ int main(void)
readcsv("display.csv", "ctor.h");
//insert_into_file("../../cppsrc/U8x8lib.h", "ctor.h", "// constructor list start", "// constructor list end");
insert_into_file("../../cppsrc/U8x8lib.h", "ctor.h", "// constructor list start", "// constructor list end");
return 0;
}

View File

@ -0,0 +1,9 @@
# 1. device name
# 2. pinset
# 3. constructor name w/o prefix,
# 4. setup function
u8x8_d_ssd1306_128x64_noname, 4WSPI, SSD1306_128X64_4W_SW_SPI, u8x8_Setup_4Wire_SW_SPI
1 # 1. device name
2 # 2. pinset
3 # 3. constructor name w/o prefix,
4 # 4. setup function
5 u8x8_d_ssd1306_128x64_noname, 4WSPI, SSD1306_128X64_4W_SW_SPI, u8x8_Setup_4Wire_SW_SPI