This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // กำหนด GoogleSheet ID ของ GoogleSheet ที่สร้าง | |
| var GoogleSheetID = 'รหัส google sheet id'; | |
| // กำหนด Parameter ที่ส่งมาทาง GET ว่าให้นำค่าไปบันทึกที่ column ไหน ของ Google Sheet | |
| var ParamKeys = { // หมายเหตุ ให้เริ่ม column 2 ขึ้นไป | |
| product : 2, // ชื่อสินค้า ให้ค่าไปบันทึกไว้ที่ column 2 ของ Google Sheet | |
| unitprice : 3, // ราคาต่อหน่วย ให้ค่าไปบันทึกไว้ที่ column 3 ของ Google Sheet | |
| quantity : 4, // จ.น. ให้ค่าไปบันทึกไว้ที่ column 4 ของ Google Sheet | |
| totalprice : 5, // ยอดรวม ให้ค่าไปบันทึกไว้ที่ column 5 ของ Google Sheet | |
| ref1 : 6, // อ้างอิง1 ให้ค่าไปบันทึกไว้ที่ column 6 ของ Google Sheet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <BlynkGOv3.h> // <BlynkGOv2.h> | |
| #define MQTT_SERVER "broker.hivemq.com" // "test.mosquitto.org" | |
| #define MQTT_PORT 1883 | |
| #define MAX_OPTION 10 | |
| #define DDLIST_KEY "DDlist" | |
| GWiFiManager wifi_manager; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <BlynkGOv3.h> | |
| GDropdownList ddlist_PulseNUM; | |
| String ddlist_PulseNUM_options[] = {"5","10","15","20","25","30" }; | |
| GLabel lb_PulseNUM; | |
| GButton btn_pwm; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <BlynkGOv3.h> | |
| #include <TridentTD_EasyFreeRTOS32.h> | |
| GDropdownList ddlist; | |
| String ddlist_options[] = {"10","15","20" }; | |
| GLabel label; | |
| int cnt=0; | |
| GButton btn; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <BlynkGOv2.h> | |
| GRect rect_titlebar; // แถบไตเติ้ลบาร์ | |
| GLabel lb_title(rect_titlebar); | |
| GPage page_body; // ส่วน body สร้างด้วย GPage | |
| GContainer cont_ta[4]; // GContainer สำหรับ รวม GTextArea 10 ตัว เข้าเป็นแถวนึง จำนวน 4 แถว | |
| GTextArea textarea[4][10]; // GTextArea จำนวน 4 แถวแถวละ 10 ตัว | |
| GLabel lb_header_row[10]; // ข้อความ ส่วน header แนวนอน |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <BlynkGOv2.h> | |
| GRect rectA; | |
| GLine line_rectA_border[2]; | |
| void setup() { | |
| Serial.begin(115200); Serial.println(); | |
| BlynkGO.begin(); | |
| BlynkGO.fillScreen(TFT_RED, TFT_ORANGE); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <BlynkGOv2.h> | |
| #include <Wire.h> | |
| GContainer cont_i2c; | |
| GRect rect_i2c[128]; | |
| GLabel lb_i2c[128]; | |
| GLabel lb_i2c_counter; | |
| void setup() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /************************************************** | |
| * BlynkGO Enterprise 5"/7" ต่อ SD Module ภายนอก | |
| * ให้ตอที่ขา 12 (MISO), 13 (MOSI),14 (SCK),15 (CS) | |
| * เสียบแผ่น sd ที่ FS แบบ FAT32 มีข้อมูลไฟล์อยู่ | |
| * ตัวอย่างนี้ จะมีการ list ชื่อไฟล์ใน root folder ของ SD ออกมา | |
| * | |
| **************************************************/ | |
| #include <BlynkGOv2.h> | |
| #include <SD.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <BlynkGOv2.h> | |
| GContainer cont_google_assitant; | |
| GLabel lb_google_assitant(cont_google_assitant); | |
| GLabel lb_say_hey_google(cont_google_assitant); | |
| GLine ln_border_google_assitant[8]; | |
| GContainer rect_shopping_list; | |
| GLabel lb_shopping_list(rect_shopping_list); |