DFRobot_DHT11 DHT; U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE|U8G_I2C_OPT_DEV_0); static const uint8_t PROGMEM , 0xE4, 0xA4, 0x24, 0xA4, 0x24, 0xA4, 0x24, 0xA4, 0x2F, 0xFE, 0x00, 0x00, }; static const uint8_t PROGMEM , 0xE9, 0x24, 0x25, 0x28, 0x23, 0x30, 0x21, 0x20, 0x2F, 0xFE, 0x00, 0x00, }; static const uint8_t PROGMEM , 0x2F, 0xF0, 0x24, 0x10, 0x42, 0x20, 0x41, 0xC0, 0x86, 0x30, 0x38, 0x0E, }; static const uint8_t PROGMEM 0x00, 0x18, 0x00, 0x08, 0x00, 0x0C, 0x04, 0x06, 0x08, 0x01, 0xF0, 0x00, 0x00, }; static const uint8_t PROGMEM
appropriate addresses for various functions (e.g. reading // and writing) tiny45 only port B const uint16_t PROGMEM [] = { NOT_A_PORT, NOT_A_PORT, (uint16_t) &PORTB, }; const uint16_t PROGMEM port_to_input_PGM[ ] = { NOT_A_PIN, NOT_A_PIN, (uint16_t) &PINB, }; const uint8_t PROGMEM digital_pin_to_port_PGM /* 0 */ PB, PB, PB, PB, PB, // 5 PB, // A0 PB, PB, PB, // A4 }; const uint8_t PROGMEM BV(3), /* 3 port B */ _BV(4), _BV(5), _BV(5), _BV(2), _BV(4), _BV(3), }; const uint8_t PROGMEM
// Ⅰ类水 ≤300mg/L const int TDS_FAIR = 1000; // Ⅲ类水 ≤1000mg/L // 汉字点阵数据(保持不变) static const uint8_t PROGMEM 0x00,0x08,0x00,0x08,0x3F,0xF8,0x00,0x08,0x00,0x08,0x00,0x08,0x7F,0xF8,0x00,0x08,}; static const uint8_t PROGMEM ,0x48,0x22,0x48,0x22,0x48,0x3E,0x48,0x22,0x08,0x22,0x08,0x2A,0x28,0x24,0x10,}; static const uint8_t PROGMEM ,0xFE,0x00,0x00,0x00,0x20,0x7F,0xFC,0x08,0x20,0x04,0x20,0x04,0xA0,0x00,0x40,}; static const uint8_t PROGMEM 0x41,0x44,0xF9,0x44,0x41,0x28,0x01,0x28,0x1A,0x10,0xE2,0x28,0x44,0x44,0x01,0x82,}; static const uint8_t PROGMEM
const PROGMEM uint8_t BmpPSPHead[14] = { 0x42, 0x4D, // "BM" in hex 0x38, 0x09, const PROGMEM uint8_t DIBHeadPSP1[40] = { 0x28, 0x00, 0x00, 0x00, // Header size, 40 0x20, 0x00, 0x00 // Number of important colors, 0 }; // BMP file data, 2 byte padding const PROGMEM uint8_t PSPpad[2] = {0x00, 0x00}; //Byte arrays of bitmapped icons, 16 x 12 px: const PROGMEM 0x20, 0x40, 0x20, 0x40, 0x20, 0x40, 0x20, 0x40, 0x20, 0x40, 0x20, 0x40, 0x3f, 0xc0}; const PROGMEM
port registers are // greater than 255, so we can't store them in uint8_t's. extern const uint16_t PROGMEM port_to_mode_PGM[]; extern const uint16_t PROGMEM port_to_input_PGM[]; extern const uint16_t PROGMEM port_to_output_PGM[]; extern const uint8_t PROGMEM digital_pin_to_port_PGM[]; // extern const uint8 _t PROGMEM digital_pin_to_bit_PGM[]; extern const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[]; extern const uint8_t PROGMEM digital_pin_to_timer_PGM[]; // Get the bit location within the hardware port
TIMER0B 2 #define TIMER1A 3 #define TIMER1B 4 //changed it to uint16_t to uint8_t extern const uint8_t PROGMEM port_to_mode_PGM[]; extern const uint8_t PROGMEM port_to_input_PGM[]; extern const uint8_t PROGMEM port_to_output_PGM []; extern const uint8_t PROGMEM port_to_pcmask_PGM[]; extern const uint8_t PROGMEM digital_pin_to_port_PGM []; // extern const uint8_t PROGMEM digital_pin_to_bit_PGM[]; extern const uint8_t PROGMEM digital_pin_to_bit_mask_PGM []; extern const uint8_t PROGMEM digital_pin_to_timer_PGM[]; // Get the bit location within the hardware
*/ #include <avr/pgmspace.h> #include "DigiKeyboard.h" const char line1[] PROGMEM = "notepad"; const char line2[] PROGMEM = "Happy Hacking!!!"
STM32L476"; const char *password="284122348"; ESP8266WebServer webServer(80); const char mainPageString[]PROGMEM
二、可以定义好HTML文件,将内容为char *然后调用,例如:static const char *htmlContent PROGMEM = R"(<!
*password = "1234567890";//这里填你家中的wifi密码 //24*24小电视的点阵图 const unsigned char bilibilitv_24u[] U8X8_PROGMEM
volatile uint32_t *const esp8266_gpioToFn[16] PROGMEM = {&GPF0, &GPF1, &GPF2, &GPF3, &GPF4, &GPF5,
整个网页的HTML代码如下所示: const char webpage[] PROGMEM = R"=====( <!
ESP8266开发之旅 进阶篇⑥ ESP-specific APIs说明 ESP8266开发之旅 进阶篇⑦ 如何尽量做到一套代码兼容esp8266和esp32 ESP8266开发之旅 进阶篇⑧ 认识 PROGMEM
tools.clz.me/image-to-bitmap-array 编写测试程序: // width: 128, height: 48 const unsigned char bilibili[] U8X8_PROGMEM
/ #define RES_HTMLHEAD_OK "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nContent-Length: " //static PROGMEM RES_FLASHHEAD_OK "HTTP/1.1 200 OK\r\nContent-Type: application/x-shockwave-flash\r\nContent-Length: " //static PROGMEM
8]; int sum=0; int sflag; // standby flag int gcount; int c; int ex; int vol=5; const uint8_t v1 [] PROGMEM 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; const uint8_t v2 [] PROGMEM 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; const uint8_t v3 [] PROGMEM 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; const uint8_t v4 [] PROGMEM 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; const uint8_t v5 [] PROGMEM
ESP8266WiFi.h> #include <ArduinoJson.h> #include <Wire.h> #include "OLED.h" static const char logo[] PROGMEM
在Marlin 1.1.1中,默认网格将存储在PROGMEM中,就像UBL现在所做的那样。 设置,也就是烧写后的默认配置) M503:打印当前设置(在 RAM 中,而不在 EEPROM 中) //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM Disable to save PROGMEM. 这些 EEPROM 选项应保留不变,但对于 128K 和更小的板,它们可用于恢复某些程序存储器。强烈建议供应商不要使用 DISABLE_M503。
CALIBRATION_NOZZLE_OUTER_DIAMETER 2.0 // mm // Uncomment to enable reporting (required for “G425 V”, but consumes PROGMEM Costs 3120 bytes of PROGMEM. // Western only. Costs 2434 bytes of PROGMEM. // Western only. Costs ~3260 (or ~940) bytes of PROGMEM. // 休闲游戏选项 //#define MARLIN_BRICKOUT //#define MARLIN_INVADERS define MAX_CMD_SIZE 96 #define BUFSIZE 4 // Transmission to Host Buffer Size // To save 386 bytes of PROGMEM
8]; int sum=0; int sflag; // standby flag int gcount; int c; int ex; int vol=5; const uint8_t v1 [] PROGMEM