Skip to content

Commit 6fdd98f

Browse files
committed
first version
0 parents  commit 6fdd98f

7 files changed

+640
-0
lines changed

LICENSE

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
The MIT License (MIT)
2+
3+
BakeBit: an open source platform for connecting BakeBit Sensors to the NanoPi NEO.
4+
Copyright (C) 2016 FriendlyARM
5+
Copyright (C) 2020 Tomasz Klim (command line interface)
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.
24+

README.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
## Overview
2+
3+
`bakebit-nanohat-driver` is a Python I2C driver, with very simple command line interface, for BakeBit NanoHat devices. Currently it supports only the OLED display part.
4+
5+
## Usage
6+
7+
Command line interface for OLED part includes 3 simple scripts:
8+
- `clear.py` - reset the device, set into text mode and clear all contents
9+
- `line.py` - print a single text line
10+
- `restore.py` - print all 8 text lines at once
11+
12+
## Installing
13+
14+
This driver is meant to be used only on Ubuntu 16.04 LTS FriendlyELEC, as provided by NanoPi board vendor. This Ubuntu flavour has certain packages already installed, eg. `python-smbus`. So you only need to download or clone this repository.
15+
16+
You can find more about BakeBit NanoHat OLED devices [here](http://wiki.friendlyarm.com/wiki/index.php/NanoHat_OLED). Note: these devices contain also 3 buttons. These buttons are not supported yet.
17+
18+
## Compatibility
19+
20+
I've tested BakeBit NanoHat OLED devices with NanoPi-NEO2, on dedicated, preinstalled version of Ubuntu 16.04 LTS. It should however work with most NanoPi NEO board models.
21+
22+
## License
23+
24+
BakeBit: an open source platform for connecting BakeBit Sensors to the NanoPi NEO.
25+
26+
| | |
27+
|:---------------------|:-----------------------------------------|
28+
| **Author:** | Tomasz Klim (<opensource@tomaszklim.pl>) |
29+
| **Copyright:** | Copyright 2016 FriendlyARM (driver) |
30+
| **Copyright:** | Copyright 2020 Tomasz Klim (interface) |
31+
| **License:** | MIT |
32+
33+
Permission is hereby granted, free of charge, to any person obtaining a copy
34+
of this software and associated documentation files (the "Software"), to deal
35+
in the Software without restriction, including without limitation the rights
36+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
37+
copies of the Software, and to permit persons to whom the Software is
38+
furnished to do so, subject to the following conditions:
39+
40+
The above copyright notice and this permission notice shall be included in all
41+
copies or substantial portions of the Software.
42+
43+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
44+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
46+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
47+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
48+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
49+
SOFTWARE.

oled/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pyc

0 commit comments

Comments
 (0)