Skip to content

Commit eb56a81

Browse files
committed
add OLED module svg file
1 parent 7f8228c commit eb56a81

File tree

3 files changed

+343
-3
lines changed

3 files changed

+343
-3
lines changed

parts/OLED12864_I2C.svg

Lines changed: 270 additions & 0 deletions
Loading

pxt.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
{
22
"name": "OLED12864_I2C",
3-
"version": "1.2.0",
4-
"description": "makecode I2C OLED 128 x 64 Package for micro:bit",
3+
"version": "1.5.0",
4+
"description": "makecode I2C OLED 128 x 64 extension for micro:bit",
55
"license": "MIT",
66
"dependencies": {
77
"core": "*"
88
},
99
"files": [
1010
"README.md",
11-
"main.ts"
11+
"pxtparts.json",
12+
"OLED12864_I2C.ts",
13+
"parts/OLED12864_I2C.svg"
1214
],
1315
"testFiles": [
1416
"test.ts"

pxtparts.json

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"OLED12864_I2C": {
3+
"visual": {
4+
"image": "parts/OLED12864_I2C.svg",
5+
"width": 82,
6+
"height": 82,
7+
"pinDistance": 7.2,
8+
"pinLocations": [
9+
{
10+
"x": 29,
11+
"y": 5
12+
},
13+
{
14+
"x": 37,
15+
"y": 5
16+
},
17+
{
18+
"x": 44,
19+
"y": 5
20+
},
21+
{
22+
"x": 51,
23+
"y": 5
24+
}
25+
]
26+
},
27+
"numberOfPins": 4,
28+
"instantiation": {
29+
"kind": "function",
30+
"fullyQualifiedName": "OLED12864_I2C.pixel,OLED12864_I2C.showString,OLED12864_I2C.showNumber,OLED12864_I2C.hline,OLED12864_I2C.vline,OLED12864_I2C.rect,OLED12864_I2C.invert,OLED12864_I2C.draw,OLED12864_I2C.clear,OLED12864_I2C.on,OLED12864_I2C.off,OLED12864_I2C.zoom,OLED12864_I2C.init",
31+
"argumentRoles": [{
32+
"pinInstantiationIdx": 0
33+
}]
34+
},
35+
"pinDefinitions": [
36+
{
37+
"target": "threeVolt",
38+
"style": "male",
39+
"orientation": "+Y"
40+
},
41+
{
42+
"target": "ground",
43+
"style": "male",
44+
"orientation": "+Y"
45+
},
46+
{
47+
"target": "SCL",
48+
"style": "male",
49+
"orientation": "+Y"
50+
},
51+
{
52+
"target": "SDA",
53+
"style": "male",
54+
"orientation": "+Y"
55+
}
56+
],
57+
"assembly": [
58+
{
59+
"pinIndices": [
60+
0,
61+
1,
62+
2,
63+
3
64+
]
65+
}
66+
]
67+
}
68+
}

0 commit comments

Comments
 (0)