Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leeyunjai/oled-disp
npm library for ssd1306-spi (Raspberrypi). support kor/eng
https://github.com/leeyunjai/oled-disp
eng hangul kor nodejs-modules npm oled oled-display-ssd1306 oled-ssd1306 raspberrypi spi spi-oled ssd1306
Last synced: 28 days ago
JSON representation
npm library for ssd1306-spi (Raspberrypi). support kor/eng
- Host: GitHub
- URL: https://github.com/leeyunjai/oled-disp
- Owner: leeyunjai
- License: mit
- Created: 2020-01-07T23:07:21.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T05:17:24.000Z (over 1 year ago)
- Last Synced: 2024-09-29T01:01:20.872Z (about 1 month ago)
- Topics: eng, hangul, kor, nodejs-modules, npm, oled, oled-display-ssd1306, oled-ssd1306, raspberrypi, spi, spi-oled, ssd1306
- Language: JavaScript
- Homepage: https://blog.naver.com/leeyunjai
- Size: 1.92 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oled-disp
This is package of oled(ssd1306) for Raspberrypi.
- support hangul(kor) end eng. (hangul(kor): 8x8, eng : 5x8)
- only test SPI, 128x64(ssd1306)![demo](./img.jpg)
# Main functions
- begin
- clearDisplay
- setCursor(x,y)
- writeString(size, string, color, true)
- update()
- drawBitmap()# Example
const Oled = require('oled-disp');
const oled = new Oled({ width: 128, height: 64, dcPin: 23, rstPin : 24}); // 7pin spi, raspoled.begin(function(){
oled.clearDisplay();
});// Text example (kor and eng)
oled.setCursor(1, 1);
oled.writeString(2, "안녕 Hi", 2, true);// PNG example (128x64 png only)
pngtolcd("a.png", false, function(err, bitmap) {
oled.buffer = bitmap;
oled.update();
}