mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-19 12:04:03 +00:00
machine: add I2C pin comments
Similar to PWM, I2C can only be used on some pins. To automatically generate this information per board, we need to add extra comments that can then be interpreted by doc-gen for the tinygo.org website.
This commit is contained in:
committed by
Ron Evans
parent
e454ad1b61
commit
b3da00ac1f
@@ -27,8 +27,8 @@ const (
|
||||
PC1 = portC + 1
|
||||
PC2 = portC + 2
|
||||
PC3 = portC + 3
|
||||
PC4 = portC + 4
|
||||
PC5 = portC + 5
|
||||
PC4 = portC + 4 // peripherals: I2C0 SDA
|
||||
PC5 = portC + 5 // peripherals: I2C0 SCL
|
||||
PC6 = portC + 6
|
||||
PC7 = portC + 7
|
||||
PD0 = portD + 0
|
||||
|
||||
Reference in New Issue
Block a user