ino example patcher
This commit is contained in:
parent
af3fde57a4
commit
4a2b7deb87
|
@ -46,6 +46,8 @@
|
|||
This is a page buffer example.
|
||||
*/
|
||||
|
||||
// Please UNCOMMENT one of the contructor lines below
|
||||
|
||||
//U8G2_SSD1306_128X64_NONAME_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
|
||||
//U8G2_SSD1306_128X64_NONAME_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
|
||||
//U8G2_SSD1306_128X64_NONAME_1_3W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* reset=*/ 8);
|
||||
|
@ -53,11 +55,12 @@
|
|||
//U8G2_SSD1306_128X64_NONAME_1_6800 u8g2(U8G2_R0, 13, 11, 2, 3, 4, 5, 6, A4, /*enable=*/ 7, /*cs=*/ 10, /*dc=*/ 9, /*reset=*/ 8);
|
||||
//U8G2_SSD1306_128X64_NONAME_1_8080 u8g2(U8G2_R0, 13, 11, 2, 3, 4, 5, 6, A4, /*enable=*/ 7, /*cs=*/ 10, /*dc=*/ 9, /*reset=*/ 8);
|
||||
//U8G2_UC1701_DOGS102_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
|
||||
U8G2_UC1701_DOGS102_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
|
||||
//U8G2_UC1701_DOGS102_1_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
|
||||
//U8G2_ST7920_192X32_1_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*cs=*/ U8X8_PIN_NONE, /*dc=*/ 17, /*reset=*/ U8X8_PIN_NONE);
|
||||
//U8G2_ST7920_192X32_1_SW_SPI u8g2(U8G2_R0, /* clock=*/ 18 /* A4 */ , /* data=*/ 16 /* A2 */, /* CS=*/ 17 /* A3 */, /* reset=*/ U8X8_PIN_NONE);
|
||||
//U8G2_ST7920_128X64_1_SW_SPI u8g2(U8G2_R0, /* clock=*/ 18 /* A4 */ , /* data=*/ 16 /* A2 */, /* CS=*/ 17 /* A3 */, /* reset=*/ U8X8_PIN_NONE);
|
||||
|
||||
// End of constructor list
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -17,4 +17,4 @@ clean:
|
|||
-rm ./inoupdate
|
||||
|
||||
ino: inoupdate
|
||||
echo "tbd"
|
||||
find ../../sys/arduino/. -name "*.ino" -exec ./inoupdate {} \;
|
|
@ -44,11 +44,8 @@
|
|||
|
||||
|
||||
|
||||
#define TOC_ENTRIES 512
|
||||
#define TOC_ENTRY_SIZE 1024
|
||||
|
||||
|
||||
char inoupdate_start[] = "// Start of constructor list";
|
||||
char inoupdate_start[] = "// Please UNCOMMENT one of the contructor lines below";
|
||||
char inoupdate_end[] = "// End of constructor list";
|
||||
|
||||
|
||||
|
@ -83,7 +80,7 @@ int file_copy(const char *source_file_name, const char *dest_file_name)
|
|||
int insert_into_file(const char *filename, const char *insertname, const char *start_line, const char *end_line)
|
||||
{
|
||||
int ch;
|
||||
int is_found;
|
||||
int is_found = 0;
|
||||
static char line[1024*4];
|
||||
const char *tmpname = "tmp.h";
|
||||
FILE *source_fp;
|
||||
|
|
Loading…
Reference in New Issue