Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated version for optional/oled.h #56

Open
MPETREMANN11 opened this issue Nov 4, 2023 · 0 comments
Open

Updated version for optional/oled.h #56

MPETREMANN11 opened this issue Nov 4, 2023 · 0 comments

Comments

@MPETREMANN11
Copy link

#define OPTIONAL_OLED_VOCABULARY V(oled)
#define OPTIONAL_OLED_SUPPORT
XV(internals, "oled-source", OLED_SOURCE,
PUSH oled_source; PUSH sizeof(oled_source) - 1)
YV(oled, OledAddr, PUSH &oled_display)
YV(oled, OledNew, oled_display = new Adafruit_SSD1306(n2, n1, &Wire, n0); DROPn(3))
YV(oled, OledDelete, delete oled_display)
YV(oled, OledBegin, n0 = oled_display->begin(n1, n0); NIP)
YV(oled, OledHOME, oled_display->setCursor(0,0); DROP)
YV(oled, OledCLS, oled_display->clearDisplay())
YV(oled, OledTextc, oled_display->setTextColor(n0); DROP)
YV(oled, OledPrintln, oled_display->println(c0); DROP)
YV(oled, OledNumln, oled_display->println(n0); DROP)
YV(oled, OledNum, oled_display->print(n0); DROP)
YV(oled, OledDisplay, oled_display->display())
YV(oled, OledPrint, oled_display->write(c0); DROP)
YV(oled, OledInvert, oled_display->invertDisplay(n0); DROP)
YV(oled, OledTextsize, oled_display->setTextSize(n0); DROP)
YV(oled, OledSetCursor, oled_display->setCursor(n1,n0); DROPn(2))
YV(oled, OledPixel, oled_display->drawPixel(n2, n1, n0); DROPn(3))
YV(oled, OledDrawL, oled_display->drawLine(n4, n3, n2, n1, n0); DROPn(5))
YV(oled, OledFastHLine, oled_display->drawFastHLine(n3, n2, n1, n0); DROPn(4))
YV(oled, OledFastVLine, oled_display->drawFastVLine(n3, n2, n1, n0); DROPn(4))
YV(oled, OledCirc, oled_display->drawCircle(n3,n2, n1, n0); DROPn(4))
YV(oled, OledCircF, oled_display->fillCircle(n3, n2, n1, n0); DROPn(4))
YV(oled, OledRect, oled_display->drawRect(n4, n3, n2, n1, n0); DROPn(5))
YV(oled, OledRectF, oled_display->fillRect(n4, n3, n2, n1, n0); DROPn(5))
YV(oled, OledRectR, oled_display->drawRoundRect(n5, n4, n3, n2, n1, n0); DROPn(6))
YV(oled, OledRectRF, oled_display->fillRoundRect(n5, n4, n3, n2, n1, n0 ); DROPn(6))
YV(oled, OledTriangle, oled_display->drawTriangle(n5, n4, n3, n2, n1, n0 ); DROPn(6))
YV(oled, OledTriangleF, oled_display->fillTriangle(n5, n4, n3, n2, n1, n0 ); DROPn(6))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant