ctor u8x8 constructon
This commit is contained in:
parent
4c9d11c0b7
commit
f6302965e0
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue