login|Register
Forum > Armbian
Post|
看8587|回9|Favorite
ForKicks 看全部
2019-3-1 06:31:49
Just wanted to make a quick note on geting started with the i2c oled display.This procedure should be very similar on a different board running armbian aswell.

1. In commandline: sudo armbian-config
2. In GUI: System -> Hardware -> Toggle on i2c-0 | Save, and follow instructions
3. In commandline: sudo apt-get update -> sudo apt-get install i2c-tools
4. In console: i2cdetect -r 0

You will be greeted with this(Awnser yes):

WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-0 using read byte commands.
I will probe address range 0x03-0x77.
Continue? [Y/n] Y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --


0x3c is the address of the display (not 0x78 as shown on ali).
If you did not get 3c, you will need to make a note of the result.
Second note, if there are more than one device, there will be more than one result.

There is no point in contiueing with the next points until you get a positiv awnser from this test. If all the fields are blank eg. --, it means that there are no devices on the i2c-0 bus.
Possilbe error: Bad wiring, check it. Wrong i2c bus, might be an idea to test i2c-1 in the i2cdetect test. Bad device, or port, run the test on a nother board, possibly test it on Arduino.

5. Download and extract : https://drive.google.com/file/d/ ... Ir/view?usp=sharing
6. Navigate in to the folder you just extrated. (If you did not get 3c in the i2vdetect test, you will need to edit the oled.h file. On line 16 you will find: #define OLED_I2C_ADDR      0x3c <--- change 3c to your result. Save and exit)
7. In console: make
8. In console: ./oled_demo

Congrats, you should now see demo information printed on your oled display and ready to make it show something more intresting than fake data

Hope I helped.

DoubleHP 看全部
2022-2-7 06:54:18
Edited by DoubleHP at 2022-2-7 08:33

Many thanks.

Google Drive is unreliable to me, so, it looks to me that this GIT seem to be your source:
https://github.com/akhmetov-dev/dz
or close enough to help people in need.

I have uploaded the project here:
https://github.com/doublehp/ssd1306-i2c-opiz_Komendantskiy
My version will be here (later):
https://github.com/doublehp/ssd1306-i2c-opiz_Demaine

xyzzsdfl 看全部
2022-3-2 02:40:17
Great article, Thanks a lot pertaining to expressing This specific know-how. Outstandingly prepared content, only when most web owners presented a similar a higher level written content because you, the world wide web has to be superior position. Remember to continue!        Packers and Movers Gurgaon to Chandigarh
xyzzsdfl 看全部
2022-3-24 06:48:13
Here you are at first ever devoted price evaluation web page for urban center interesting attractions & taking in the sights excursions, cruise trip travels, little ones actions, out of doors pursuits, wine beverages excursions from the UK, European countries, US, Asia, Midst Eastern side along with world-wide traveller hotspots.        Attractions
xyzzsdfl 看全部
2022-4-2 06:45:01
I actually pleasantly surprised together with the study you actually manufactured to make this special upload unbelievable. Excellent hobby!        Attractions
12NextPage

OrangePi En

Powered by Discuz! X3.4

homepage|Simple edition|Touch edition|PC