]> Repositories - Adafruit_Blinka-hackapet.git/blob - python/microcontroller/esp8266.py
Reimplementation of corresponding circuitpython version
[Adafruit_Blinka-hackapet.git] / python / microcontroller / esp8266.py
1 from mcp import Enum
2 class Pin(Enum):
3     def __init__(self, num):
4         self.num = num
5     pass
6 Pin.GPIO0=Pin(0)
7 Pin.GPIO2=Pin(2)
8 Pin.GPIO4=Pin(4)
9 Pin.GPIO5=Pin(5)
10 Pin.GPIO12=Pin(12)
11 Pin.GPIO13=Pin(13)
12 Pin.GPIO14=Pin(14)
13 Pin.GPIO15=Pin(15)
14 Pin.GPIO16=Pin(16)
15
16
17 class cpu():
18     def frequency(self):
19         from machine import freq
20         return freq()