HelloWorld.ino 556 B

12345678910111213141516171819
  1. // This example just provide basic function test;
  2. // For more informations, please vist www.heltec.cn or mail to support@heltec.cn
  3. #include <Wire.h> // Only needed for Arduino 1.6.5 and earlier
  4. #include "heltec.h" // alias for `#include "SSD1306Wire.h"`
  5. void setup() {
  6. Heltec.begin(true /*DisplayEnable Enable*/, true /*Serial Enable*/);
  7. Heltec.display->init();
  8. Heltec.display->flipScreenVertically();
  9. Heltec.display->setFont(ArialMT_Plain_10);
  10. Heltec.display->drawString(0,0,"Hello World!");
  11. Heltec.display->display();
  12. }
  13. void loop() { }