{"id":15164256,"url":"https://github.com/peff74/esp8266_oled_hw-364a","last_synced_at":"2025-10-25T03:30:46.072Z","repository":{"id":250135800,"uuid":"833537218","full_name":"peff74/esp8266_OLED_HW-364A","owner":"peff74","description":"litte code for ESP8266 Board with 0.96 Inch OLED Display","archived":false,"fork":false,"pushed_at":"2024-10-24T23:11:00.000Z","size":4508,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-25T01:57:48.111Z","etag":null,"topics":["esp8266","hw-364a","hw-364b","oled","ssd1306"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peff74.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-25T08:56:05.000Z","updated_at":"2024-10-23T08:33:41.000Z","dependencies_parsed_at":"2024-08-19T00:25:04.438Z","dependency_job_id":"2ec734a6-a200-423f-a54c-6a32313f05f6","html_url":"https://github.com/peff74/esp8266_OLED_HW-364A","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"0d718e09a2ca903c16e0807af9fa9ce3c962f01d"},"previous_names":["peff74/esp8266_oled_hw-364a"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peff74%2Fesp8266_OLED_HW-364A","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peff74%2Fesp8266_OLED_HW-364A/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peff74%2Fesp8266_OLED_HW-364A/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peff74%2Fesp8266_OLED_HW-364A/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peff74","download_url":"https://codeload.github.com/peff74/esp8266_OLED_HW-364A/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238071135,"owners_count":19411600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["esp8266","hw-364a","hw-364b","oled","ssd1306"],"created_at":"2024-09-27T03:02:40.279Z","updated_at":"2025-10-25T03:30:46.066Z","avatar_url":"https://github.com/peff74.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HW-364A (USB-C) / HW-364B (Micro USB)\n![AHT20_BMP280 logo](https://github.com/peff74/esp8266_OLED_HW-364A/blob/main/front_1.jpg)\n![AHT20_BMP280 logo](https://github.com/peff74/esp8266_OLED_HW-364A/blob/main/back.jpg)\n\n\n- The HW-364A / HW-364B is a very practical and cheap ESP8266 with 0.96 Inch OLED Display.\n- It is sold on all known platforms.\n- Some dealers provide incorrect technical data, which sometimes makes it difficult to get it up and running...\n- be aware that SDA and SCL may be swapped!!!\n\n\n\n## Technical specs\n- SDA is D6 / GPIO14\n- SCL is D5 / GPIO12\n- Address is 0x3C\n\n\n## Code using Adafruit_SSD1306\n```\n#include \u003cAdafruit_SSD1306.h\u003e\n\n#define SCREEN_WIDTH 128 // OLED display width, in pixels\n#define SCREEN_HEIGHT 64 // OLED display height, in pixels\n\n#define OLED_RESET     -1   // Reset pin # (or -1 if sharing Arduino reset pin)\n#define SCREEN_ADDRESS 0x3C // If not work please scan the bus\n#define OLED_SDA 14         // D6\n#define OLED_SCL 12         // D5\n\nAdafruit_SSD1306 *display;\n\nint c = 0; \n\n\nvoid handle_oled(int c) {\n  display-\u003eclearDisplay();\n  display-\u003esetTextSize(1);\n  display-\u003esetTextColor(SSD1306_WHITE);\n  display-\u003esetCursor(0, 0);\n  display-\u003eprintln(\"Display is working!\");\n  display-\u003eprintln(\"\");\n  display-\u003eprintln(\"\");\n  display-\u003eprintln(\"Have fun with it\");\n  display-\u003eprintln(\"\");\n  display-\u003eprintln(\"\");\n  display-\u003eprint(\"Uptime: \");\n  display-\u003eprint(c);\n  display-\u003eprintln(\"s\");\n  display-\u003edisplay();\n}\n\n\nvoid setup() {\n  display = new Adafruit_SSD1306(SCREEN_WIDTH, SCREEN_HEIGHT, \u0026Wire, OLED_RESET);\n  Wire.begin(OLED_SDA, OLED_SCL);\n  display-\u003ebegin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS);\n}\n\nvoid loop() {\n  handle_oled(c);\n  c++;\n  delay(1000);\n}\n```\n   ![AHT20_BMP280 logo](https://github.com/peff74/esp8266_OLED_HW-364A/blob/main/front_2.jpg)\n\n## Code using U8g2\n```\n#include \u003cU8g2lib.h\u003e\n#define OLED_RESET     U8X8_PIN_NONE // Reset pin\n#define OLED_SDA 14                  // D6\n#define OLED_SCL 12                  // D5\n\nU8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, OLED_RESET, OLED_SCL, OLED_SDA);\n\nint c = 0;\n\nvoid handle_oled(int c) {\n  u8g2.clearBuffer();\n  u8g2.setFont(u8g2_font_ncenB08_tr);\n  u8g2.drawStr(0, 10, \"Display is working!\");\n  u8g2.drawStr(0, 30, \"Have fun with it\");\n  char buffer[20];\n  snprintf(buffer, sizeof(buffer), \"Uptime: %ds\", c);\n  u8g2.drawStr(0, 50, buffer);\n  u8g2.sendBuffer();\n}\n\nvoid setup() {\n  u8g2.begin();\n}\n\nvoid loop() {\n  handle_oled(c);\n  c++;\n  delay(1000);\n}\n\n```\n![AHT20_BMP280 logo](https://github.com/peff74/esp8266_OLED_HW-364A/blob/main/front_3.jpg)\n\n## Quick Tip for Arduino IDE Users  \nHaving trouble getting started?  \nMake sure your Arduino IDE settings are dialed in correctly!  \nCheck out the screenshot below for the recommended setup:  \n\n![Arduino IDE Settings](https://github.com/peff74/esp8266_OLED_HW-364A/blob/main/IDE_settings.png)  \n\n- **Board**: \"Generic ESP8266 Module\"  \n- **Port**: Ensure the correct COM port is selected.  \n- **Upload Speed**: \"115200\"  \n- **Flash Size**: \"1MB (FS:64KB OTA:~470KB)\"  \n- **Erase Flash**: \"Only Sktech\"\n\n\n\nThese settings should get you up and running.  \nIf it still doesn’t work, take a deep breath, re-check everything, and give it another go. 😉\n\n\n[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fpeff74%2Fesp8266_OLED_HW-364A\u0026count_bg=%2379C83D\u0026title_bg=%23555555\u0026icon=\u0026icon_color=%23E7E7E7\u0026title=hits\u0026edge_flat=false)](https://hits.seeyoufarm.com)\n[![Visits Badge](https://badges.pufler.dev/visits/peff74/esp8266_OLED_HW-364A)](https://badges.pufler.dev)\n![Badge](https://hitscounter.dev/api/hit?url=https%3A%2F%2Fgithub.com%2Fpeff74%2Fesp8266_OLED_HW-364A\u0026label=Hits\u0026icon=github\u0026color=%23198754)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeff74%2Fesp8266_oled_hw-364a","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeff74%2Fesp8266_oled_hw-364a","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeff74%2Fesp8266_oled_hw-364a/lists"}