comparison: CircuitPython/microcontroller.py
CircuitPython/microcontroller.py
- changeset 7
- e336d6afc5a6
equal
deleted
inserted
replaced
|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Module containing stubs for API generation of the 'microcontroller' module. |
|
8 """ |
|
9 |
|
10 def delay_us(delay): |
|
11 pass |
|
12 |
|
13 def disable_interrupts(): |
|
14 pass |
|
15 |
|
16 def enable_interrupts(): |
|
17 pass |
|
18 |
|
19 def on_next_reset(run_mode): |
|
20 pass |
|
21 |
|
22 def reset(): |
|
23 pass |
|
24 |
|
25 class Pin(): |
|
26 pass |
|
27 |
|
28 class Processor(): |
|
29 frequency = 0 |
|
30 temperatur = 0 |
|
31 uid = 0 |
|
32 |
|
33 class RunMode(): |
|
34 NORMAL = 0 |
|
35 SAFE_MODE = 0 |
|
36 BOOTLOADER = 0 |
|
37 |
|
38 cpu = Processor() |
|
39 pin = Pin() |
|
40 |
|
41 import nvm |
|
42 nvm = nvm.ByteArray() |