Jetson Nano(6) -- Jetson Nano & OLED(Testing)

Adafruit_python_ssd1306: https://github.com/adafruit/Adafruit_Python_SSD1306 (for Jetson or Pi)

Adafruit_ssd1306 : https://github.com/adafruit/Adafruit_SSD1306 (for arduino )


DEPRECATED LIBRARY Adafruit Python SSD1306

his library has been deprecated! We are leaving this up for historical and research purposes but archiving the repository.

We are now only supporting the use of our CircuitPython libraries for use with Python.

Check out this guide for info on using OLEDs with the CircuitPython library: https://learn.adafruit.com/monochrome-oled-breakouts/python-wiring


Python library to use SSD1306-based 128x64 or 128x32 pixel OLED displays with a Raspberry Pi or Beaglebone Black.

Designed specifically to work with the Adafruit SSD1306-based OLED displays ----> https://www.adafruit.com/categories/98

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Installing

sudo python -m pip install --upgrade pip setuptools wheel
sudo pip install Adafruit-SSD1306

Or alternatively:

sudo python -m pip install --upgrade pip setuptools wheel
git clone https://github.com/adafruit/Adafruit_Python_SSD1306.git
cd Adafruit_Python_SSD1306
sudo python setup.py install

Copying

Written by Tony DiCola for Adafruit Industries. MIT license, all text above must be included in any redistribution


Testing for Jetson 

Tips: import Adafruit_SSD1306 in python3 env

 

Usage of OLED 

Basic  idea for using Jetson OLED model is to show the network IP address via the OLED dispaly, which can simplify the wirekless connection by ssh or vnc viewer.

 

 


Also, Adafruit_SSD1306 for arduino lib

This is a library for our Monochrome OLEDs based on SSD1306 drivers

Pick one up today in the adafruit shop! ------> http://www.adafruit.com/category/63_98

These displays use I2C or SPI to communicate, 2 to 5 pins are required to interface.

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Limor Fried/Ladyada for Adafruit Industries, with contributions from the open source community. Scrolling code contributed by Michael Gregg. Dynamic buffer allocation based on work by Andrew Canaday. BSD license, check license.txt for more information. All text above must be included in any redistribution

Preferred installation method is to use the Arduino IDE Library Manager. To download the source from Github instead, click "Clone or download" above, then "Download ZIP." After uncompressing, rename the resulting folder Adafruit_SSD1306. Check that the Adafruit_SSD1306 folder contains Adafruit_SSD1306.cpp and Adafruit_SSD1306.h.

You will also have to install the Adafruit GFX library which provides graphics primitves such as lines, circles, text, etc. This also can be found in the Arduino Library Manager, or you can get the source from https://github.com/adafruit/Adafruit-GFX-Library

Changes

Version 1.2 (November 2018) introduces some significant changes:

  • Display dimensions are now specified in the constructor...you no longer need to edit the .h file for different screens (though old sketches can continue to work that way).
  • SPI transactions are used and SPI bitrate can be specified (both require Arduino 1.6 or later).
  • SPI and Wire (I2C) interfaces other than the defaults are supported.

Compatibility

MCUTested WorksDoesn't WorkNot TestedNotes
Atmega328X   
Atmega32u4X   
Atmega2560X   
ESP8266X  Change OLED_RESET to different pin if using default I2C pins D4/D5.
ESP32X   
ATSAM3X8EX   
ATSAM21DX   
Intel CurieX   
WICEDX  No hardware SPI - bitbang only
ATtiny85 X  
  • ATmega328 : Arduino UNO, Adafruit Pro Trinket, Adafruit Metro 328, Adafruit Metro Mini
  • ATmega32u4 : Arduino Leonardo, Arduino Micro, Arduino Yun, Teensy 2.0, Adafruit Flora, Bluefruit Micro
  • ATmega2560 : Arduino Mega
  • ESP8266 : Adafruit Huzzah
  • ATSAM3X8E : Arduino Due
  • ATSAM21D : Arduino Zero, M0 Pro, Adafruit Metro Express, Feather M0
  • ATtiny85 : Adafruit Gemma, Arduino Gemma, Adafruit Trinket

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Techblog of HaoWANG

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值