forked from mongoose-os-libs/ssd1306
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmos.yml
45 lines (37 loc) · 1.35 KB
/
mos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
author: brandond, mamuesp
description: Implements SSD1306 OLED driver on Mongoose OS
type: lib
version: 1.0
platforms: [ esp8266, esp32 ]
libs:
- origin: https://github.com/mongoose-os-libs/i2c
- origin: https://github.com/mongoose-os-libs/core
sources:
- src
includes:
- include
config_schema:
- ["ssd1306", "o", {title: "SSD1306 Settings"}]
- ["ssd1306.enable", "b", true, {title: "Enable SSD1306"}]
- ["ssd1306.width", "i", 128, {title: "Screen width"}]
- ["ssd1306.height", "i", 64, {title: "Screen height"}]
- ["ssd1306.address", "i", 0x3c, {title: "Screen controller I2C address"}]
- ["ssd1306.i2c", "o", {title: "SSD1306 I2C settings"}]
- ["ssd1306.i2c.enable", "b", true, {title: "Enable SSD1306-specific I2C configuration"}]
- ["ssd1306.i2c.freq", "i", 400000, {title: "Clock frequency"}]
- ["ssd1306.i2c.unit_no", "i", 0, {title: "Which hardware unit to use, 0 or 1"}]
- ["ssd1306.i2c.debug", "b" , false, {title: "Debug I2C bus activity"}]
- ["ssd1306.i2c.sda_gpio", "i", 5, {title: "GPIO to use for SDA"}]
- ["ssd1306.i2c.scl_gpio", "i", 4, {title: "GPIO to use for SCL"}]
- ["ssd1306.rst_gpio", "i", -1, {title: "optional GPIO to use for RST"}]
conds:
- when: mos.platform == "esp8266"
apply:
cdefs:
I2C_NO_UNIT_NO: 1
tags:
- c
- i2c
- ssd1306
- docs:drivers:SSD1306 OLED
manifest_version: 2017-09-29