File tree Expand file tree Collapse file tree 4 files changed +26
-4
lines changed Expand file tree Collapse file tree 4 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ Version 0.4.0
18
18
* Removing interrupt and bus information from Pin definitions as
19
19
this wasn't implemented and likely would need a redesign if it was
20
20
added.
21
+ * Defining the arduino uno as a separate device to the nano.
22
+ Functionally these are equivalent besides the fewer ADC inputs
23
+ on the uno.
21
24
22
25
Version 0.3.0
23
26
-------------
Original file line number Diff line number Diff line change 13
13
"interface" : Interface .STUB ,
14
14
"loading" : Loading .LAZY ,
15
15
},
16
- "Arduino Nano 3 EAGER" : {
17
- "identity" : Devices .arduino_nano ,
16
+ "Arduino Uno 3 EAGER" : {
17
+ "identity" : Devices .arduino_uno ,
18
18
"address" : "/dev/ttyUSB0" ,
19
19
"interface" : Interface .STUB ,
20
20
"loading" : Loading .EAGER ,
Original file line number Diff line number Diff line change 2
2
from dataclasses import dataclass
3
3
4
4
from uoshardware .abstractions import Device
5
- from uoshardware .devices ._arduino import _ARDUINO_NANO_3
5
+ from uoshardware .devices ._arduino import _ARDUINO_NANO_3 , _ARDUINO_UNO_3
6
6
7
7
8
8
@dataclass (init = False , repr = False , frozen = True )
@@ -17,4 +17,5 @@ class Devices:
17
17
# Lookup constants linking devices to importable names
18
18
hwid_0 : Device = _ARDUINO_NANO_3
19
19
arduino_nano : Device = _ARDUINO_NANO_3
20
- arduino_uno : Device = _ARDUINO_NANO_3
20
+ hwid_1 : Device = _ARDUINO_UNO_3
21
+ arduino_uno : Device = _ARDUINO_UNO_3
Original file line number Diff line number Diff line change 89
89
},
90
90
aux_params = {"default_baudrate" : 115200 },
91
91
)
92
+
93
+
94
+ _ARDUINO_UNO_3 = Device (
95
+ name = "Arduino Uno 3" ,
96
+ interfaces = _ARDUINO_NANO_3 .interfaces ,
97
+ functions_enabled = _ARDUINO_NANO_3 .functions_enabled ,
98
+ digital_pins = _ARDUINO_NANO_3 .digital_pins ,
99
+ analog_pins = {
100
+ 0 : Pin (adc_in = True , alias = 14 ),
101
+ 1 : Pin (adc_in = True , alias = 15 ),
102
+ 2 : Pin (adc_in = True , alias = 16 ),
103
+ 3 : Pin (adc_in = True , alias = 17 ),
104
+ 4 : Pin (adc_in = True , alias = 18 ),
105
+ 5 : Pin (adc_in = True , alias = 19 ),
106
+ # Uno has 2 less ADCs pins than the nano.
107
+ },
108
+ aux_params = {"default_baudrate" : 115200 },
109
+ )
You can’t perform that action at this time.
0 commit comments