Compare commits

..

969 commits

Author SHA1 Message Date
Melissa LeBlanc-Williams
bf1cb100e9
Merge pull request #391 from Gautham103/jetson-thor
add support for jetson thor
2025-08-27 12:31:04 -07:00
Gautham Srinivasan
c39b827090 add support for jetson thor 2025-08-27 19:22:42 +00:00
Melissa LeBlanc-Williams
11b7869b26
Merge pull request #390 from technobly/for-upstream
Support for Particle Tachyon
2025-08-15 15:44:52 -07:00
Technobly
16e3e94bf4 Support for Particle Tachyon 2025-08-15 15:40:06 -05:00
Melissa LeBlanc-Williams
80ec116668
Merge pull request #388 from avenstewart/add-orange-pi-5-pro
Added support for Orange Pi 5 Pro board
2025-08-15 11:59:38 -07:00
agstewart
d914ee53cb formatting fix 2025-07-20 03:40:31 -05:00
agstewart
4e59d9f78a added chip detection for RK3588S 2025-07-20 03:13:02 -05:00
agstewart
15ba5ece10 reformatted 3 lines 2025-07-18 18:20:47 -05:00
agstewart
89d7ee3fdd added pylint lines 2025-07-18 18:02:32 -05:00
agstewart
84e017adbb added pylint disable line 2025-07-18 17:05:25 -05:00
agstewart
85730de9d9 Added support for Orange Pi 5 Pro running Armbian and official Orange Pi jammy Ubuntu Server image 2025-07-18 01:23:14 -05:00
Melissa LeBlanc-Williams
ba31c3ca58
Merge pull request #372 from bgigous/main
Find EEPROM device more reliably on BeagleBones
2025-07-02 11:00:59 -07:00
Melissa LeBlanc-Williams
af15c7b84f Ran pre-commit 2025-07-02 10:58:21 -07:00
Melissa LeBlanc-Williams
1295880bef Merge branch 'main' of https://github.com/bgigous/Adafruit_Python_PlatformDetect 2025-07-02 10:57:10 -07:00
Melissa LeBlanc-Williams
1344fe0c74
Merge pull request #386 from mlodedrwale/main
Added support for Orange Pi Zero 3
2025-07-02 08:37:53 -07:00
mlodedrwale
630b050a6b Added support for Orange Pi Zero 3 2025-06-28 14:02:58 +00:00
Melissa LeBlanc-Williams
46f0930498
Merge pull request #385 from bablokb/radxa_x4
add support for Radxa-X4 via U2IF
2025-06-18 13:56:47 -07:00
Melissa LeBlanc-Williams
691e0fe2c3
Update chip.py
Add Board name to list
2025-06-18 13:54:55 -07:00
Bernhard Bablok
017cceb73e add support for Radxa-X4 via U2IF 2025-06-14 12:27:20 +02:00
Melissa LeBlanc-Williams
7e3169bc72
Merge pull request #384 from Dangku/main
support renesas rzv2h/rzv2n, bananapi ai2h/ai2n board
2025-05-14 09:42:47 -07:00
August
acf0d47d24 support renesas rzv2h/rzv2n, bananapi ai2h/ai2n board 2025-05-14 20:01:44 +08:00
Melissa LeBlanc-Williams
7b802887eb
Merge pull request #382 from mrv96/ft4232h
Add support to FT4232H
2025-05-05 11:22:39 -07:00
Melissa LeBlanc-Williams
9679fba489
Merge pull request #381 from fb0u/main
Add support for Radxa Rock 3B
2025-05-05 11:21:49 -07:00
Melissa LeBlanc-Williams
c7f4b0a080
Merge pull request #380 from ErikApption/main
added support for orange pi 5 max
2025-05-05 11:21:13 -07:00
Melissa LeBlanc-Williams
daaf6579d1
Merge pull request #378 from Dominikk7/main
Update boards.py for Jetson Orin Nano Super
2025-05-05 11:17:59 -07:00
Melissa LeBlanc-Williams
df3be871ca
Merge pull request #375 from Dangku/main
support allwinner sun55iw3 T527, bananapif5
2025-05-05 11:17:08 -07:00
Melissa LeBlanc-Williams
88b7201943
Merge pull request #383 from vicharak-in/main
board: vicharak vaaman and axon support
2025-05-05 11:16:28 -07:00
djkabutar
e9a841ba66 board: vicharak vaaman and axon support
Vicharak has introduced Vaaman and Axon board which uses
rk3399 and rk3588 respectively.

Signed-off-by: djkabutar <d.kabutarwala@yahoo.com>
2025-04-01 18:56:43 +05:30
mrv96
3f346a64fa Add support to FT4232H 2025-03-28 14:00:35 +01:00
Florent Bourghelle
fb5cade5df Model is Rock 3B and not Rock PI 3B 2025-03-11 13:50:56 +01:00
Florent Bourghelle
6d44d27d60 Chip ID equals to RK3568 on Radxa Rock 3B 2025-03-11 12:04:34 +01:00
Florent Bourghelle
5ae9bf9598 Add Rock PI 3B 2025-03-11 11:31:04 +01:00
Erik
36e0c4f1b7 added support for orange pi 5 max 2025-02-22 16:54:31 -05:00
Dominikk7
8fb785dd66
Update boards.py for Jetson Orin Nano Super
JetPack 6.2 Jetson Nano Super compatibility
2025-01-17 13:21:15 -05:00
Scott Shawcroft
c9518b0a55
Merge pull request #377 from makermelissa/main
Add Pi500 and CM5 Lite Detection
2025-01-16 09:46:05 -08:00
Melissa LeBlanc-Williams
0c47b07c95 Update python version to 3.8 2025-01-15 12:53:22 -08:00
Melissa LeBlanc-Williams
95b773e52a Update python version to 3.7.x 2025-01-15 12:47:42 -08:00
Melissa LeBlanc-Williams
a9dba12376 Add Pi500 and CM5 Lite Detection 2025-01-15 11:43:13 -08:00
August
fae9cc3573 support allwinner sun55iw3 T527, bananapif5 2025-01-08 12:30:58 +08:00
Melissa LeBlanc-Williams
49b677907c
Merge pull request #370 from hajimef/develop
Added support for D-Robotics RDK-X3
2025-01-03 12:19:01 -08:00
Melissa LeBlanc-Williams
0c6bd4c9ee
Merge pull request #374 from makerforgetech/feature/CM5
Support for Raspberry Pi Compute Module 5 (CM5)
2025-01-03 12:16:56 -08:00
danic85
fd08864bff Support for Raspberry Pi Compute Module 5 (CM5) 2025-01-02 21:40:17 +00:00
bgigous
acaf6e68f4 BeagleBone: Fix logical error 2024-12-11 19:34:20 -07:00
bgigous
68fbb3943a Find EEPROM device more reliably on BeagleBones
- Use glob builtin to find device on i2c address 0x50 matching `0-0050*`
  instead of checking paths one at a time
2024-12-11 19:23:10 -07:00
Hajime Fujimoto
9ba3d32b98 Modify for black error 2024-12-01 22:51:08 +09:00
Hajime Fujimoto
b552676599 Added support for D-Robotics RDK-X3 2024-12-01 22:10:35 +09:00
foamyguy
287633cb1b
Merge pull request #369 from Rippanda12/main
Add Indiedroid Support
2024-10-07 11:08:53 -05:00
rippanda12
47ce0add1d
Chore: Make pylint happy 2024-10-06 16:51:40 +03:00
rippanda12
7fcf46bdc3
Add Indiedroid Support 2024-09-23 22:15:51 +03:00
Melissa LeBlanc-Williams
a6897f7cc6
Merge pull request #368 from Dangku/main 2024-09-04 11:30:46 -07:00
August
dad9b44d4f remove unused variable 2024-09-04 09:47:37 +08:00
August
07bbea902c support spacemit k1, bananapif3 2024-09-03 19:32:07 +08:00
August
f5b0f3ed0c fix bananapi board detect error 2024-09-02 10:26:19 +08:00
August
1d30230656 support allwinner h618 chip, bananapi m4berry and m4zero board 2024-08-31 23:48:06 +08:00
Melissa LeBlanc-Williams
20f52a2fec
Merge pull request #366 from johnnohj/main
Include Waveshare RP2040 One (3 of 3)
2024-08-08 11:35:13 -07:00
johnnohj
1a52b53bcb Restore outer parentheses to appease Black format checks 2024-08-08 18:00:26 +00:00
johnnohj
7a20c35879
Update chip.py 2024-08-08 13:41:31 -04:00
johnnohj
f9016dcf5e
Update chip.py 2024-08-08 13:29:23 -04:00
johnnohj
7d76953a9d
Update chip.py
makes suggested changes: version as '0.0.0+auto.0' and removes superfluous parenthesis
2024-08-08 13:23:02 -04:00
johnnohj
f478b64311
Update board.py
makes suggested changes
2024-08-08 13:19:28 -04:00
johnnohj
ea17275660 corrections via pre-commit 2024-08-07 22:25:12 +00:00
johnnohj
8b7ef86473
Update chip.py 2024-08-07 16:17:40 -04:00
johnnohj
567f2ea9d8
Update boards.py 2024-08-07 16:16:17 -04:00
johnnohj
034382b97e
Update board.py 2024-08-07 16:14:09 -04:00
johnnohj
c49370196b
Add files via upload 2024-08-07 16:06:02 -04:00
Melissa LeBlanc-Williams
fa1219189a
Merge pull request #365 from DarkMechanikum/dev
Dev
2024-07-18 09:04:28 -07:00
Vladimir Shtarev
234b4d8596
Merge branch 'adafruit:main' into dev 2024-07-18 12:31:30 +03:00
Melissa LeBlanc-Williams
9c9fd12097
Merge pull request #364 from DarkMechanikum/main
Added detection of Starfive JH7110 chip and Starfive VisionFive2 board
2024-07-10 08:45:46 -07:00
Vladimir Shtarev
55436d5fba
Merge branch 'adafruit:main' into main 2024-07-05 14:50:04 +03:00
Melissa LeBlanc-Williams
ba9142593c
Merge pull request #360 from makermelissa/orange-pi-fix
Fix Orange Pi 3 Order
2024-07-01 08:34:13 -07:00
DarkMechanikum
b0b96f6fb2 added _any functions for visionfive2 2024-06-27 17:30:15 +03:00
Vladimir Shtarev
7f7fa99ed1
Merge pull request #1 from DarkMechanikum/dev
Added the support for JH7110 chip and VisionFive2 board, tested detection on VisionFive2 v1.2 board
2024-06-27 00:42:40 +03:00
DarkMechanikum
0a85b3bf17 formatted 2024-06-27 00:38:45 +03:00
DarkMechanikum
ca3c7b1dfb formatted 2024-06-27 00:36:29 +03:00
DarkMechanikum
6de892138c reformatted the changed files 2024-06-27 00:22:53 +03:00
DarkMechanikum
086984c843 reformatted the changed files 2024-06-27 00:09:18 +03:00
DarkMechanikum
d8478ab127 changed starfive board detection function 2024-06-27 00:02:45 +03:00
DarkMechanikum
96b0c0572c changed starfive board detection function 2024-06-27 00:00:46 +03:00
DarkMechanikum
90295ca01b changed starfive board detection function 2024-06-26 23:58:26 +03:00
DarkMechanikum
9b6ad2b98b changed starfive board detection function 2024-06-26 23:57:11 +03:00
DarkMechanikum
d4d2c00f67 changed starfive board detection function 2024-06-26 23:56:04 +03:00
DarkMechanikum
aa493d0319 changed starfive board detection function 2024-06-26 23:52:06 +03:00
DarkMechanikum
05220e5415 changed starfive board detection function 2024-06-26 23:49:35 +03:00
DarkMechanikum
2bb3b99b29 changed starfive board detection function 2024-06-26 23:47:29 +03:00
DarkMechanikum
407208c93a changed starfive board detection function 2024-06-26 23:45:42 +03:00
DarkMechanikum
e66339800f changed starfive board detection function 2024-06-26 23:42:43 +03:00
DarkMechanikum
b6162a3c20 changed starfive board detection function 2024-06-26 23:39:09 +03:00
DarkMechanikum
5a4de64344 changed starfive board detection function 2024-06-26 23:37:38 +03:00
DarkMechanikum
f59895faf3 changed starfive board detection function 2024-06-26 23:33:59 +03:00
DarkMechanikum
998e553144 changed starfive board detection function 2024-06-26 23:29:40 +03:00
DarkMechanikum
e8076ca168 debug output added 2024-06-26 23:27:46 +03:00
DarkMechanikum
d5b4493460 debug output added 2024-06-26 23:27:33 +03:00
DarkMechanikum
624a40d580 added JH7110 RISC-V chip and STARFIVE VISIONFIVE2 board 2024-06-26 23:20:48 +03:00
Scott Shawcroft
05c1e8dc3f
Merge pull request #362 from makermelissa/vivid-unit
Add Vivid Unit Detection
2024-06-17 15:53:03 -07:00
Melissa LeBlanc-Williams
9563c61c67 Add Vivid Unit Detection 2024-06-17 12:25:10 -07:00
Melissa LeBlanc-Williams
228aafb684 Merge branch 'main' of https://github.com/adafruit/Adafruit_Python_PlatformDetect into orange-pi-fix 2024-06-17 12:11:40 -07:00
Melissa LeBlanc-Williams
35da22e815
Merge pull request #361 from makermelissa/main
Fix olimex property
2024-06-17 12:11:20 -07:00
Melissa LeBlanc-Williams
f122397241 Fix olimex property 2024-06-17 12:06:31 -07:00
Melissa LeBlanc-Williams
db20929932 Fix Orange Pi 3 Order 2024-06-17 09:25:03 -07:00
Melissa LeBlanc-Williams
441bd45d49
Merge pull request #359 from mmontol/main
Add support for lubancat-5
2024-06-17 09:13:12 -07:00
mmontol
e355772359 Add support for lubancat-5 2024-06-15 16:49:44 +08:00
Melissa LeBlanc-Williams
565e00bad9
Merge pull request #357 from hajimef/develop
Added support for Radxa Rock 5C
2024-06-06 08:24:20 -07:00
Hajime Fujimoto
ce32900a40 Check rock5c first 2024-06-06 20:14:06 +09:00
Hajime Fujimoto
2fbc1f05bd Changed check order of Rock 5 and Rock 5C 2024-06-04 22:58:18 +09:00
Melissa LeBlanc-Williams
1ab27ecd43
Merge pull request #358 from nopnop2002/main
Added LUCKFOX_PICO/LUCKFOX_PICO_PLUS
2024-06-03 14:57:13 -07:00
nopnop2002
4c5a5da14d Added LUCKFOX_PICO/LUCKFOX_PICO_PLUS 2024-06-04 06:31:23 +09:00
Melissa LeBlanc-Williams
07f06c6d2b
Merge pull request #356 from nopnop2002/main
Added ORANGE_PI_PC2
2024-06-03 08:40:12 -07:00
nopnop2002
56e81bee9a
Merge branch 'adafruit:main' into main 2024-06-03 20:27:22 +09:00
Hajime Fujimoto
00973a2cf5 Added support for Radxa Rock 5C 2024-06-01 21:44:22 +09:00
nopnop2002
e1bc181cd8 Added ORANGE_PI_PC2 2024-06-01 09:09:39 +09:00
Melissa LeBlanc-Williams
715e573029
Merge pull request #355 from Grippy98/main
Add BeagleY-AI / AM67A
2024-05-31 11:53:48 -07:00
Melissa LeBlanc-Williams
b8c5355145
Merge pull request #353 from brentru/add-agnostic-board
Add support for OS-agnostic board (CI runner)
2024-05-31 11:52:04 -07:00
brentru
4d3bbdf4b0 Merge remote-tracking branch 'brentru/add-agnostic-board' into add-agnostic-board 2024-05-31 14:37:54 -04:00
brentru
d9e4f42d83 put back 2024-05-31 14:37:13 -04:00
Brent Rubell
15d91a4c1b
Merge branch 'main' into add-agnostic-board 2024-05-31 14:36:06 -04:00
Andrei Aldea
fd5202cd22 Add BeagleY-AI / AM67A
Add Testing for BeagleY-AI & AM67A SoC.

This will include shim for GPIOZERO so Pi Calls work out of box.
GPIOD works too of course.

What's the best way to utilize? Mark it as Pi compat somehow?
2024-05-31 13:15:27 -05:00
Melissa LeBlanc-Williams
2e1f0a2b04
Merge pull request #354 from nopnop2002/main
added Luckfox Mini
2024-05-31 08:06:23 -07:00
nop
a0261fb412 fixed pre-commit 2024-05-31 19:48:19 +09:00
Melissa LeBlanc-Williams
f1754d06f0
Merge pull request #351 from walnutpi/main
add support for walnutpi-1b-emmc
2024-05-30 09:33:03 -07:00
nop
2d7c7db0d7 Update boards.py 2024-05-30 23:41:36 +09:00
nop
113c0e59a1 added Luckfox Mini 2024-05-30 23:03:31 +09:00
brentru
592fe8d56b fix detection of board not throwing 2024-05-30 09:46:59 -04:00
brentru
dd6bc908ac resolve boards.OLIMEX_LIME2 error 2024-05-30 09:40:55 -04:00
brentru
53ca17ebc4 add agnostic files 2024-05-30 09:37:36 -04:00
sc-bin
e3fc60521d add support for walnutpi-1b-emmc 2024-05-21 17:29:37 +08:00
Melissa LeBlanc-Williams
55c52a3538
Merge pull request #350 from lugamodder/main
Add RV1106 Luckfox Pico Max
2024-05-09 08:24:55 -07:00
lugamodder
de897ac02a
Merge branch 'adafruit:main' into main 2024-05-09 01:00:44 +03:00
lugamodder
767967e26c
add Luckfox Pico board 2024-05-09 00:58:02 +03:00
lugamodder
ccca2b3599
Update board.py 2024-05-09 00:17:10 +03:00
Melissa LeBlanc-Williams
717172adc5
Merge pull request #348 from burberius/raxda-zero3
Add detection for Radxa ZERO 3 boards
2024-05-08 14:00:49 -07:00
lugamodder
16bf0c47d7
Update boards.py 2024-05-08 23:51:54 +03:00
lugamodder
12e70d7036 Add RV1106 Luckfox Pico Max 2024-05-07 00:15:54 +03:00
Jens Oberender
40b6db5b11 Add detection for Radxa ZERO 3 boards (3E with ethernet and 3W with Wifi). 2024-04-17 20:25:02 +02:00
Melissa LeBlanc-Williams
f991454192
Merge pull request #344 from shawnchainw/main
Added support for RADXA ROCK 3C board
2024-03-04 08:43:14 -08:00
Melissa LeBlanc-Williams
03fd0ea2c9
Merge pull request #345 from anonymouscowhead/add-quartz64a
add detection of Pine64 Quartz64 model A board
2024-03-04 08:42:23 -08:00
anonymouscowhead
9e3c7e6d7d add detection of Pine64 Quartz64 model A board 2024-03-03 22:14:06 -05:00
shawnchainw
d8f28b46ce Added support for RADXA ROCK 3C board 2024-02-29 21:44:34 +08:00
Melissa LeBlanc-Williams
0bb023d8d1
Merge pull request #343 from shawnchainw/main
Added support for RADXA ROCK 4SE board
2024-02-28 08:29:26 -08:00
shawnchainw
00e4f84a8f Added support for RADXA ROCK 4SE board 2024-02-28 17:59:03 +08:00
Melissa LeBlanc-Williams
662570fd31
Merge pull request #341 from michaelstoops/main
Added detection for LeMaker Banana Pro running Debian Bookworm (12.4)
2024-02-01 10:32:06 -08:00
Michael Stoops
0e18221a4d Removed Banana Pro detection from _armbian_id 2024-02-01 08:12:02 -08:00
Michael Stoops
23763a1f29 Added detection for LeMaker Banana Pro running Debian Bookworm (12.4) 2024-01-29 18:18:48 -08:00
Melissa LeBlanc-Williams
5ed903c744
Merge pull request #340 from anonymouscowhead/add-licheepi4a-detect
Add licheepi4a detect
2024-01-22 08:46:02 -08:00
anonymouscowhead
be59d2ba04 Added space to comply with Black style 2024-01-13 21:10:46 +00:00
anonymouscowhead
31cc387a4f Added board detection 2024-01-13 20:38:34 +00:00
anonymouscowhead
2b0643a191 Added chip detection 2024-01-13 03:26:58 +00:00
anonymouscowhead
9d22bb6d2d Added constants 2024-01-13 02:36:04 +00:00
Melissa LeBlanc-Williams
9384e4517e
Merge pull request #336 from mahenzon/feature/add-repka-pi
Add Repka Pi-3 H5 and Pi-4 H6 constants
2024-01-10 14:07:55 -08:00
Melissa LeBlanc-Williams
5e148f4c22
Merge branch 'main' into feature/add-repka-pi 2024-01-10 14:05:58 -08:00
Melissa LeBlanc-Williams
ccc452f501
Merge pull request #337 from casainho/main
Added board MilkV Duo
2024-01-10 14:04:10 -08:00
Melissa LeBlanc-Williams
c08c2ec6cb Merge branch 'main' of https://github.com/casainho/Adafruit_Python_PlatformDetect 2024-01-10 13:58:43 -08:00
Melissa LeBlanc-Williams
ee81a52211
Merge pull request #339 from makermelissa/main
Remove Build Assets which is causing PRs to fail
2024-01-10 13:51:43 -08:00
Melissa LeBlanc-Williams
8f8e9d19be Remove Build Assets which is causing PRs to fail 2024-01-10 13:46:11 -08:00
casainho
4d38ce8e41 Clean after using pre-commit 2024-01-07 21:07:38 +00:00
casainho
9cf551506f Added board MilkV Duo 2024-01-07 19:07:54 +00:00
Suren Khorenyan
197c36dfc3 Add Repka Pi-3 H5 and Pi-4 H6 constants 2024-01-06 15:16:53 +03:00
Melissa LeBlanc-Williams
47efdb51c3
Merge pull request #331 from how2flow/odroid
ODROID-M1: Remove RK3568B2 and Use RK3568 instead
2023-12-07 08:26:29 -08:00
Steve Jeong
028137fe74 ODROID-M1: Remove RK3568B2 and Use RK3568 instead
Signed-off-by: Steve Jeong <steve@how2flow.net>
2023-12-06 07:53:56 +00:00
Melissa LeBlanc-Williams
cf5f41998c
Merge pull request #328 from KingPharoo/main
Added support for Olimex A20-LIME2-EMMC Board
2023-12-02 09:26:22 -08:00
KingPharoo
858e1ce84a
Merge branch 'adafruit:main' into main 2023-12-02 17:43:45 +10:30
KingPharoo
e363928ffa Updated after review 1 2023-12-02 06:36:46 +00:00
Melissa LeBlanc-Williams
2c5a187a1d
Merge pull request #329 from Barbarian-5215/main
Add Orange Pi 5 Plus (again?)
2023-11-29 11:27:52 -08:00
Barbarian-5215
031cf248df
Update boards.py
Added literal definition for ORANGE_PI_5_PLUS
2023-11-29 12:51:42 -06:00
Barbarian-5215
e674b6460d
Update board.py
Changed order of discovery, 5 plus, then 5.
2023-11-29 12:49:09 -06:00
KingPharoo
3562120399 Added support for Olimex A20-LIME2-EMMC board 2023-11-28 02:27:56 +00:00
KingPharoo
2d4b8c7a34 Added support for Olimex A20-LIME2-EMMC board 2023-11-28 02:02:39 +00:00
Barbarian-5215
67136f2dec
Update board.py
Added detection of Orange Pi 5 Plus
2023-11-26 14:30:06 -06:00
Barbarian-5215
bd1197faf6
Update boards.py
Added a constant for ORANGE_PI_5_PLUS
2023-11-26 14:19:07 -06:00
Melissa LeBlanc-Williams
1ff8b3b448
Merge pull request #326 from how2flow/odroidm1s
New support for ODROID-M1S
2023-11-14 08:08:10 -08:00
Steve Jeong
732702dde6 New support for ODROID-M1S
Signed-off-by: Steve Jeong <steve@how2flow.net>
2023-11-09 18:22:10 +09:00
Melissa LeBlanc-Williams
bb2d27494d
Merge pull request #323 from makermelissa/main
Remove pre-decoded revcodes and tester
2023-10-12 08:26:07 -07:00
Melissa LeBlanc-Williams
cab357802e Fix fallback code to not use _PI_REV_CODES 2023-10-10 09:27:30 -07:00
Melissa LeBlanc-Williams
f05c528a86 Remove pre-decoded revcodes and tester 2023-10-10 09:14:00 -07:00
Melissa LeBlanc-Williams
d688829a60
Merge pull request #322 from timonsku/main
add Raspberry Pi 5
2023-10-10 09:08:08 -07:00
Melissa LeBlanc-Williams
f9f0803fd6 Fix long line 2023-10-10 09:03:22 -07:00
Timon Skerutsch
6c4ba75669 add Raspberry Pi 5 2023-10-07 04:37:49 +02:00
Melissa LeBlanc-Williams
f3da6190b2
Merge pull request #321 from johnp789/orangepi3b
Add Orange Pi 3B
2023-10-05 11:04:18 -07:00
John Pitney
4b7d260552 Add Orange Pi 3B 2023-10-03 20:56:19 -05:00
Melissa LeBlanc-Williams
9ffecfcfa0
Merge pull request #320 from CalvesGEH/patch-1
Updated JETSON_AGX_ORIN board IDs
2023-09-20 11:37:17 -07:00
Philip Moraski
ee3e3a7c7c
Updated JETSON_AGX_ORIN board IDs 2023-09-20 12:59:13 -04:00
Melissa LeBlanc-Williams
9b02e91b01
Merge pull request #319 from makermelissa/fix-docs
Fix failing docs
2023-09-18 13:51:38 -07:00
Melissa LeBlanc-Williams
161d4b07e3 Fix failing docs 2023-09-18 13:43:53 -07:00
Kattni
a46ba23527
Merge pull request #315 from makermelissa/recursion-fix
Fix recursion on some systems
2023-09-18 13:36:54 -04:00
Scott Shawcroft
659af734eb
Merge pull request #318 from makermelissa/simplify_rev_codes
Improve rpi_info script to run interactively
2023-09-18 10:28:46 -07:00
Melissa LeBlanc-Williams
4d12148525 Improve rpi_info script to run interactively 2023-09-18 09:24:15 -07:00
Melissa LeBlanc-Williams
89849d46e6 Reun pre-commit 2023-09-12 09:36:27 -07:00
Melissa LeBlanc-Williams
ccf1d71c51 Fix recursion on some systems 2023-09-12 08:51:19 -07:00
Melissa LeBlanc-Williams
633203a7c1
Merge pull request #314 from makermelissa/update-versions
Update Pre-commit config versions
2023-09-08 10:02:50 -07:00
Melissa LeBlanc-Williams
e4ca06ba8c Undo more formatting 2023-09-08 09:28:13 -07:00
Melissa LeBlanc-Williams
8820fe87aa Fix config and unlint 2023-09-08 09:24:17 -07:00
Melissa LeBlanc-Williams
1b1ab2f988 Updated pylint config and linted everything 2023-09-08 09:16:19 -07:00
Melissa LeBlanc-Williams
62941b818a Update Pre-commit config versions 2023-09-07 16:33:58 -07:00
Melissa LeBlanc-Williams
8cc24b09b5
Merge pull request #312 from HarryWeppner/beaglebone-a3
add support for BeagleBone rev. A3
2023-09-06 11:41:19 -07:00
Scott Shawcroft
66aa5decaf
Merge pull request #311 from makermelissa/release-drafter
Add Release Drafter to make releases easier
2023-09-06 10:10:23 -07:00
Harry Weppner
740b62d45a add support for BeagleBone rev. A3 2023-09-05 21:19:02 -07:00
Melissa LeBlanc-Williams
20773b55cc Add SPDX headers 2023-09-05 16:50:26 -07:00
Melissa LeBlanc-Williams
cc6fa10900 Update categories 2023-09-05 16:43:14 -07:00
Melissa LeBlanc-Williams
1b02a1e723 Add Release Drafter Files 2023-09-05 16:35:06 -07:00
Melissa LeBlanc-Williams
95fb4af85e
Merge pull request #310 from sc-bin/main
add support for walnutpi-1b
2023-09-05 09:51:37 -07:00
sc-bin
f99e1db213 add support for walnutpi-1b 2023-09-05 11:38:05 +08:00
Melissa LeBlanc-Williams
86f614bd3c
Merge pull request #307 from mmontol/main
Add support for LubanCat-4
2023-08-29 08:34:29 -07:00
mmontol
650590d903 avoid line too long 2023-08-07 14:30:05 +08:00
mmontol
5c98d7deec avoid too-many-lines error from pylint 2023-08-07 14:07:27 +08:00
mmontol
bcd669742d added support for LubanCat-4 2023-08-07 11:37:03 +08:00
Melissa LeBlanc-Williams
96871229e6
Merge pull request #306 from jgdempsey/main
added Nanopi Neo 2 board
2023-08-01 08:53:06 -07:00
jgdempsey
9b33be2af4 Ran Black on the repo 2023-07-29 13:53:33 -04:00
jgdempsey
eb686e82cc added Nanopi Neo 2 board 2023-07-29 13:45:56 -04:00
Melissa LeBlanc-Williams
af62ea4713
Merge pull request #305 from Xenokrates/bananapro
Added support for board 'Lemaker Banana Pro'
2023-07-28 09:44:02 -07:00
Melissa LeBlanc-Williams
139c43db4c
Merge pull request #304 from atomicmaster/OrantePi5
OrangePi 5 detection for not Armbian
2023-07-28 09:43:06 -07:00
Xenokrates
c7f8528345 Fixed the Linux detection. 2023-07-20 10:32:19 +02:00
Xenokrates
574da1c42d Reformatted code to comply with tests. 2023-07-20 10:21:10 +02:00
Xenokrates
b682743a30 Added support for board 'Lemaker Banana Pro' 2023-07-20 09:43:29 +02:00
Alex Nikitin
199d16d46d OrangePi 5 detection for not Armbian 2023-07-19 19:56:07 -05:00
Melissa LeBlanc-Williams
ec110700f4
Merge pull request #302 from MPult/BPI-M2-Berry
Adding support for BPI-M2-Berry Board
2023-07-07 10:39:29 -07:00
Melissa LeBlanc-Williams
99a7cb2218
Merge pull request #303 from caternuson/add_kb2040
Add KB2040
2023-07-07 10:37:44 -07:00
caternuson
dbe5a7a75c add KB2040 2023-07-07 10:31:01 -07:00
Mpult
6b168840ff Formatted according to Black 2023-06-20 20:18:45 +00:00
Mpult
11f224da01 Finalized testing for M2-Berry 2023-06-20 19:40:59 +00:00
Melissa LeBlanc-Williams
6cc5669dfb
Merge pull request #301 from toozhsu/main
Add support for Tinker Board 2 and Tinker Edge R
2023-06-20 10:06:25 -07:00
tooz
0848d55d1d Add support for Tinker Board 2 and Tinker Edge R
fixed pre-commit formatting issue
2023-06-20 13:40:28 +08:00
tooz
cc1f8a82c8 Add support for Tinker Board 2 and Tinker Edge R 2023-06-20 13:24:53 +08:00
tooz
15052ea83e Add support for Tinker Board 2 and Tinker Edge R
Adding Tinker Board 2 and Tinker Edge R
2023-06-20 12:41:42 +08:00
tooz
e7ddeac4e8 Add support for Tinker Board 2 and Tinker Edge R 2023-06-20 12:03:32 +08:00
Mpult
da8460fa8f Adding support for BPI-M2-Berry Board 2023-06-18 12:13:55 +00:00
Melissa LeBlanc-Williams
9082e332cb
Merge pull request #295 from NathanY3G/odroid-h3-support
Add support for Hardkernel ODROID-H3
2023-05-23 09:05:47 -07:00
Melissa LeBlanc-Williams
16516c711c
Merge pull request #297 from tyeth/circuitpython-error-fix
Fixup syntax
2023-05-23 09:03:44 -07:00
tyeth
24473019bc Fixup _seed_board_ids and tinker board
Circuitpython error returning Nonetype as str implicitly on line 780.
2023-05-23 15:44:41 +01:00
Nathan Young
694fa24125 Increase max-module-lines to permit successful build
Please refer to Issue 296 for more information.
2023-05-21 21:44:19 +02:00
Nathan Young
f835e6ca35 Add support for Hardkernel ODROID-H3 2023-05-21 19:55:33 +02:00
Melissa LeBlanc-Williams
7b3c72a581
Merge pull request #294 from makermelissa/simplify_rev_codes
Added improved Pi Revision Code detection
2023-05-12 09:43:30 -07:00
Melissa LeBlanc-Williams
7a1ff1b232 Update pre-commit and re-lint 2023-05-11 15:16:17 -07:00
Melissa LeBlanc-Williams
e88f9ff784 Added improved Pi Revision Code detection 2023-05-11 14:52:42 -07:00
Melissa LeBlanc-Williams
2b3b7eff8d
Merge pull request #293 from makermelissa/debian_orange_pi
Fix detection for Orange Pi Zero 2 on Debian
2023-05-10 11:03:39 -07:00
Melissa LeBlanc-Williams
184e5a904d Merge branch 'main' of https://github.com/adafruit/Adafruit_Python_PlatformDetect into debian_orange_pi 2023-05-10 09:12:49 -07:00
Melissa LeBlanc-Williams
69daccf9df
Merge pull request #290 from virtualRadish/main
Add Detection for AM625x SoC and BeaglePlay
2023-05-10 09:12:42 -07:00
Melissa LeBlanc-Williams
0bcb1d0681 Fix detection for Orange Pi Zero 2 on Debian 2023-05-10 09:09:34 -07:00
Melissa LeBlanc-Williams
dc6b5c5627
Merge pull request #292 from kaangoksal/main
A new constant for raspberry pi 3b +
2023-05-08 08:20:23 -07:00
Kaan Göksal
a7a4b7756c
A new constant for raspberry pi 3b +
Added a new revision of raspberry pi 3b + to constants
2023-05-05 14:52:06 -07:00
Andrei Aldea
0384b60e2b Fixed formatting with black 2023-05-05 16:28:09 -05:00
Andrei Aldea
71b66b509c Fixed pre-commit Errors 2023-05-05 16:15:03 -05:00
Andrei Aldea
44f412dc82 Add Detection for AM625x SoC and BeaglePlay
This also includes some preliminary stuff for BeagleBone AI64 (TDA4VM /J721e). Will send second patch for that.
2023-05-05 14:52:09 -05:00
Melissa LeBlanc-Williams
54e97bbb5d
Merge pull request #288 from mmontol/main
Update board.py
2023-04-13 08:25:12 -07:00
Yuyue
bb3178287f
Update board.py
Fix
2023-04-13 09:58:04 +08:00
Yuyue
5e8e88c11b
Update adafruit_platformdetect/board.py
Co-authored-by: Melissa LeBlanc-Williams <melissa@adafruit.com>
2023-04-13 09:18:42 +08:00
Yuyue
d354b1fff5
Update adafruit_platformdetect/board.py
Co-authored-by: Melissa LeBlanc-Williams <melissa@adafruit.com>
2023-04-13 09:18:35 +08:00
Melissa LeBlanc-Williams
80642040cd
Merge pull request #289 from BlitzCityDIY/main
Adding support for CAN and RFM Feather
2023-04-11 12:55:35 -07:00
Liz
17f533ba58
Merge branch 'adafruit:main' into main 2023-04-11 10:43:25 -04:00
Liz
563108df67 Adding RFM and CAN feather 2023-04-11 10:42:46 -04:00
Yuyue
9f42d9e5c6
Update board.py
Modify  board_value  for  LubanCat1 LubanCat2
2023-04-11 09:36:16 +08:00
Melissa LeBlanc-Williams
1ca0643847
Merge pull request #287 from anhmiuhv/orinnx
add support for Jetson Orin NX and Jetson Orin Nano
2023-04-04 16:36:52 -07:00
linhhoang
8413ff28ca add support for Jetson Orin NX and Jetson Orin Nano 2023-04-04 01:23:19 -04:00
Melissa LeBlanc-Williams
6965f721f8
Merge pull request #286 from BlitzCityDIY/main
Adding Feather RP2040 EPD
2023-04-03 08:21:50 -07:00
Liz
4fe85aabf6 Update board.py 2023-04-03 09:50:09 -04:00
Liz
cad32475b6 Updating pylint enable/disables 2023-04-03 09:47:50 -04:00
Liz
e5dc15fd01 Adding Feather RP2040 EPD
Adding Feather RP2040 EPD to use with U2IF
2023-04-03 09:41:17 -04:00
Melissa LeBlanc-Williams
cf93300ff3
Merge pull request #283 from McFly-Labs/main
Adding NXP NavQPlus to detected boards
2023-03-17 16:46:32 -07:00
Steamfoundry
61b2ae2992 fixing IMX8MP so it shows as a linux kernel 2023-03-17 15:59:37 -06:00
Steamfoundry
385c5a216e Refactor how I added the NXP i.MX8M Plus so it won't conflict definitions when I add it into Blinka
Changes to be committed:
	modified:   adafruit_platformdetect/board.py
	modified:   adafruit_platformdetect/chip.py
	modified:   adafruit_platformdetect/constants/chips.py
2023-03-17 12:13:06 -06:00
Andrew_Mcfly
9fded76d75 Fixing formatting with black before Pull request 2023-03-17 08:15:45 +00:00
Andrew_Mcfly
380dda2c52 Adding NXP NavQPlus to detected boardys (Uses an IMX8M SOC module so the chip is already detected)
Future boards using the same SOC may need to edit the board name or detection line in bin/detect.py so it doesn't list it as an NXP NAVq board

Original NavQ board not available to I couldn't add it too.

Added for the Hovergames 3
Team Mcfly
2023

 Changes to be committed:
	modified:   adafruit_platformdetect/board.py
	modified:   adafruit_platformdetect/constants/boards.py
	modified:   bin/detect.py
2023-03-17 07:19:15 +00:00
Melissa LeBlanc-Williams
2477c895ad
Merge pull request #281 from farski/ROC-RK3328-CC
Add Libre "Renegade" ROC-RK3328-CC compatibility
2023-03-09 08:45:25 -08:00
Chris Kalafarski
66f7b39d8a
Fix formatting 2023-03-06 21:55:58 -05:00
Chris Kalafarski
eecc1dff64
Add Libre "Renegade" ROC-RK3328-CC compatibility 2023-03-06 21:51:24 -05:00
Melissa LeBlanc-Williams
cd4800abb1
Merge pull request #279 from AYastrebov/main
add dietPi check for orange pi 4
2023-02-21 09:34:38 -08:00
Melissa LeBlanc-Williams
a3371ad189
Merge pull request #280 from shulltronics/main
Fix detection of Pine64 devices
2023-02-15 14:57:19 -08:00
Carsten Thue-Bludworth
981b914cb6 Changed if-else statement order to work for Pinephone 2023-02-15 22:30:20 +00:00
Andrey Yastrebov
c603071a22 add dietPi check for orange pi 4 2023-02-03 19:24:39 +01:00
Melissa LeBlanc-Williams
80397041fc
Merge pull request #278 from tekktrik/main
Upgrade actions, fix output checking
2023-01-31 08:04:39 -08:00
Alec Delaney
d4af29e043
Upgrade actions, fix output checking 2023-01-30 20:12:45 -05:00
Melissa LeBlanc-Williams
c3182551ac
Merge pull request #277 from tekktrik/main
Add build package
2023-01-30 14:33:49 -08:00
Alec Delaney
5bd72aaee1
Add build package 2023-01-30 15:52:31 -05:00
Melissa LeBlanc-Williams
67c8a460a0
Merge pull request #272 from etrevis/main
Add Rock Pi 3A compatibility
2023-01-30 11:53:10 -08:00
Enrico
94c5e95960 Merge branch 'main' of https://github.com/etrevis/Adafruit_Python_PlatformDetect 2023-01-30 20:28:13 +01:00
Enrico
f2546e71dc change name to ROCK_PI_3A 2023-01-30 20:28:00 +01:00
Enrico
5ee458d0d1
Merge branch 'adafruit:main' into main 2023-01-20 20:03:56 +01:00
Dan Halbert
11b7e58ceb
Merge pull request #275 from tekktrik/dev/pyproject-toml
Switch to pyproject.toml
2023-01-19 08:31:57 -05:00
Alec Delaney
6203b8fe56 Fix CI 2023-01-18 23:39:19 -05:00
Alec Delaney
6639cc6e64 Update template version strings 2023-01-18 23:34:45 -05:00
Alec Delaney
401a9c301b Update CI 2023-01-18 23:33:55 -05:00
Alec Delaney
c697fc4ad1 Switch to pyproject.toml 2023-01-18 23:25:07 -05:00
Enrico
14be48c3d1 Add Rock PI 3A compatibility 2023-01-17 19:44:52 +01:00
Melissa LeBlanc-Williams
dfb49d14b0
Merge pull request #271 from RealCorebb/main
Add Supported to Orange Pi 5
2023-01-10 08:00:54 -08:00
RealCorebb
6b3ab180ee
Update board.py 2023-01-08 18:30:09 +08:00
RealCorebb
1f366bcb8d
Update boards.py 2023-01-08 18:26:32 +08:00
RealCorebb
bfbf605285
Update board.py 2023-01-08 18:21:46 +08:00
RealCorebb
d557ad7585
Update boards.py 2023-01-08 18:21:17 +08:00
Melissa LeBlanc-Williams
491d46ae79
Merge pull request #270 from ecarozzo/main
Fix board name after update to latest bios firmware
2022-12-15 08:05:17 -08:00
ecarozzo
7de715858a
Update adafruit_platformdetect/board.py
Co-authored-by: Melissa LeBlanc-Williams <melissa@adafruit.com>
2022-12-15 09:46:25 +01:00
ecarozzo
a4dcf730e5
Merge branch 'adafruit:main' into main 2022-12-15 09:44:59 +01:00
Melissa LeBlanc-Williams
86a57dc781
Merge pull request #269 from LuisMalhadas/RockPi4CPlus
Add Rock pi4 c plus
2022-12-14 10:03:49 -08:00
ecarozzo
4047d7225b black format 2022-12-14 16:34:09 +01:00
ecarozzo
41533d14ab Add 2022-12-14 16:19:33 +01:00
ecarozzo
02fe0e7a24 Merge branch 'main' of https://github.com/ecarozzo/Adafruit_Python_PlatformDetect into main 2022-12-14 16:10:36 +01:00
ecarozzo
2126e294b8 Merge https://github.com/ecarozzo/Adafruit_Python_PlatformDetect into main 2022-12-14 16:04:18 +01:00
ecarozzo
7bbde0dd39 Fix board name after update to last bios firmware 2022-12-14 16:02:33 +01:00
Luis Malhadas
b7ebea6c2a for compatibility with circuitpython 2022-12-10 22:56:47 +00:00
Luis Malhadas
97813bf5f1 More appropriate naming and rem forgotten print. 2022-12-10 01:15:49 +00:00
Luis Malhadas
52b87b3f53 Rock Pi 4C+ add to the list of boards 2022-12-10 01:01:05 +00:00
Melissa LeBlanc-Williams
eeea86a5dd
Merge pull request #262 from pkowalsk1/main
Add RASPBERRY_PI_4B rev code
2022-12-01 09:00:03 -08:00
Melissa LeBlanc-Williams
d0d0ff7cb4
Merge pull request #266 from kennethryerson/Radxa_CM3
Add support for Radxa CM3
2022-11-30 08:52:58 -08:00
Melissa LeBlanc-Williams
ccb2313e03
Merge pull request #265 from makermelissa/main
Improved Detector Script and fixed some missing edge cases
2022-11-29 15:26:24 -08:00
Melissa LeBlanc-Williams
a8ef1a20c4 Merge branch 'main'... 2022-11-29 15:23:46 -08:00
Kenneth Ryerson
20d5515fee Add support for Radxa CM3 2022-11-28 16:29:45 -06:00
Melissa LeBlanc-Williams
7126b96702
Merge pull request #263 from ecarozzo/main
Added support to SeeedStudio Odyssey X86J4105 SBC
2022-11-28 13:33:46 -08:00
Melissa LeBlanc-Williams
cabedb512b Wording improvements 2022-11-28 10:26:59 -08:00
Melissa LeBlanc-Williams
a0c9952991 Improved Detector Script and fixed some missing edge cases 2022-11-28 10:20:48 -08:00
ecarozzo
fa920788de Black formatted 2022-11-26 15:38:15 +01:00
ecarozzo
ca36d5d971 word break 2022-11-26 15:21:31 +01:00
ecarozzo
12a8129b27 Error correction 2022-11-26 14:56:23 +01:00
ecarozzo
7ac797b940 Add encoding in open function 2022-11-26 14:30:16 +01:00
ecarozzo
a66c9d45d4 Add more precise detection 2022-11-26 13:08:00 +01:00
ecarozzo
6435addf39 Added any_embedded_linux definition 2022-11-26 11:22:46 +01:00
ecarozzo
024f0cf46c Added support to SeeedStudio Odyssey X86J5105 2022-11-26 10:28:41 +01:00
Paweł Kowalski
8cbfeb18c4
Add RASPBERRY_PI_4B rev code 2022-11-25 12:54:28 +01:00
Melissa LeBlanc-Williams
b6f715e207
Merge pull request #261 from MrPanc0/main
Add Odroid M1 and RK3568B2
2022-11-23 13:20:48 -08:00
MrPanc0
3c18843ee3
Update boards.py 2022-11-23 20:15:23 +01:00
Melissa LeBlanc-Williams
0161bc8684 Ran pre-commit 2022-11-23 10:59:13 -08:00
MrPanc0
3ae0ef5da9
Update chips.py 2022-11-23 19:31:38 +01:00
MrPanc0
d2c7369da5
Update board.py 2022-11-23 19:28:39 +01:00
MrPanc0
1430d36b84
Update chip.py 2022-11-23 19:27:21 +01:00
MrPanc0
71278679d6
Update boards.py 2022-11-23 19:22:16 +01:00
Melissa LeBlanc-Williams
cd400bb55d
Merge pull request #260 from mmontol/main
Add supprot for LubanCat Zero,LubanCat1 and LubanCat2
2022-11-21 11:16:33 -08:00
monark
82bc85b106 Fix format 2022-11-19 10:55:37 +08:00
lilin
deebf95ecc board detect 2022-11-18 05:55:54 +00:00
lilin
98669f2b79 Modify board_value 2022-11-18 03:25:41 +00:00
lilin
48c2e558e7 Add supprot for LubanCat Zero,LubanCat1 and LubanCat2 2022-11-17 03:02:51 +00:00
Melissa LeBlanc-Williams
f6ca7ad770
Merge pull request #201 from CamDavidsonPilon/main
Lazily evaluate conditions
2022-11-09 09:16:50 -08:00
Melissa LeBlanc-Williams
1a6d387274 Fix commas from merge 2022-11-09 09:12:23 -08:00
Melissa LeBlanc-Williams
71b11f95e9 Merge branch 'main' of https://github.com/adafruit/Adafruit_Python_PlatformDetect into lazyeval 2022-11-09 09:08:55 -08:00
Melissa LeBlanc-Williams
8163e7bf3a
Merge pull request #258 from happyme531/rk3588-rock-5
Add support for Radxa Rock 5
2022-11-09 09:00:43 -08:00
Melissa LeBlanc-Williams
e2b56b6773 Ran pre-commit 2022-11-09 08:57:30 -08:00
Melissa LeBlanc-Williams
faf979aeb5 Merge branch 'main' of https://github.com/adafruit/Adafruit_Python_PlatformDetect into rk3588-rock-5 2022-11-09 08:56:47 -08:00
Melissa LeBlanc-Williams
affaec8c3f
Merge pull request #257 from makermelissa/main
Fix Libre AML_S905X_CC LePotato not being detected as Linux
2022-11-09 08:54:56 -08:00
Melissa LeBlanc-Williams
41bbc2da02 Put _LIBRE_COMPUTER_IDS in tuple 2022-11-09 08:52:23 -08:00
user.email
ab6c1b54a2 Add support for Radxa Rock 5 2022-11-09 00:01:28 +08:00
Melissa LeBlanc-Williams
2f22814873 Fix Libre AML_S905X_CC LePotato not being detected as Linux 2022-11-07 09:29:47 -08:00
Melissa LeBlanc-Williams
ed84d5d729
Merge pull request #255 from SIMATICmeetsLinux/main
Added Siemens Simatic IOT2000 Gateway to detect.py
2022-10-27 11:57:30 -07:00
Alec Delaney
6fbdfe6469
Merge pull request #254 from cstenkamp/patch-1
Update Readme: Requires Python 3.7
2022-10-26 22:37:52 -04:00
Martin S
efff4083eb
deleted surplus row in bin/detect.py 2022-10-26 20:32:31 +02:00
Martin S
1423aff5ad
Added Siemens Simatic IOT2000 Gateway to detect.py 2022-10-26 20:14:56 +02:00
Chris Stenkamp
442a124cc6
Update Readme: Requires Python 3.7
Since version 3.20.0, which added Type Annotations, this package actually requires Python 3.7, which is the first version that supports them. The Readme should be updated accordingly.
2022-10-26 12:51:56 +02:00
Melissa LeBlanc-Williams
3059faa7cc
Merge pull request #253 from nibuild/add-bpim2plus
Adding support for Banana PI M2 Plus
2022-10-15 19:21:23 -07:00
Ed McLain
c08d5325be
Adding support for Banana Pi M2 Plus 2022-10-15 11:08:58 -05:00
Melissa LeBlanc-Williams
fe9a4b65d3
Merge pull request #252 from bmol118/s905x-support
Add support for the AML_S905X_CC board
2022-10-14 08:44:05 -07:00
Melissa LeBlanc-Williams
9818fb66a1 Ran pre-commit 2022-10-14 08:40:25 -07:00
Brandon
f8d2cb88e8 Add support for the AML_S905X_CC board 2022-10-14 01:05:21 +00:00
Melissa LeBlanc-Williams
858f7d5fc6
Merge pull request #251 from Ryzer58/main
Add support for Linksprite Pcduino models 2 & 3.
2022-10-06 14:44:30 -07:00
Ryzer58
10a16d9795
Merge branch 'adafruit:main' into main 2022-09-24 19:02:43 +01:00
Melissa LeBlanc-Williams
718ecbe347
Merge pull request #249 from SIMATICmeetsLinux/main
Added Siemens Simatic IOT2050 Basic/Advanced
2022-09-22 08:23:28 -07:00
Martin Schnur
3be4b59879 Added Siemens Simatic IOT2050 Basic/Advanced 2022-09-21 18:30:13 +02:00
Ryan L
96a87e372f Update repo in line with latest updates from Adafruit 2022-09-17 19:33:38 +01:00
Melissa LeBlanc-Williams
212b754f05
Merge pull request #247 from alsprogrammer/main
Add Lechee RV SBC (D1 RISC-V Processor)
2022-09-12 11:13:18 -07:00
Aleksandr Saiapin
1f1e381ca2
chore: rename processor 2022-09-12 23:14:09 +07:00
Melissa LeBlanc-Williams
5613f26086
Merge pull request #248 from twa127/master
Add Support for Orangepi 4
2022-09-12 08:08:28 -07:00
Aleksandr Saiapin
6e62d67d6c
chore: get rid of comprehension 2022-09-11 12:33:00 +07:00
Aleksandr Saiapin
786c25c998
fix: fix any_lichee_riscv_board detection 2022-09-11 12:19:49 +07:00
Aleksandr Saiapin
f1cb7e8619
chore: fix comment 2022-09-11 12:15:35 +07:00
Aleksandr Saiapin
9ce15998db
feat: add board to linux boards 2022-09-11 12:10:31 +07:00
Aleksandr Saiapin
3b9d6f0901
chore: update board detection 2022-09-11 12:00:07 +07:00
twa127
7558b2ba92
Update boards.py 2022-09-10 14:52:40 +01:00
twa127
9df927b7f4
Update board.py 2022-09-10 14:50:40 +01:00
Aleksandr Saiapin
becc90c59a
chore: rename LICHEE_D1 to LICHEE_RV 2022-09-10 18:24:44 +07:00
Aleksandr Saiapin
ca0c7c40dc
chore: rename LICHEE_D1 to LICHEE_RV 2022-09-10 17:17:57 +07:00
Aleksandr Saiapin
f770db478b Black reformat 2022-09-10 12:56:07 +07:00
Aleksandr Saiapin
d77ceccfc9 Add Lichee D1 board 2022-09-10 12:46:03 +07:00
Melissa LeBlanc-Williams
c007fa144f
Merge pull request #246 from SimpleTheory/main
Updating Cm4 revision number hopefully with pre-commit tests cleared
2022-09-07 14:16:40 -07:00
SimpleTheory
86ef4e0abe no changes from previous commit just making sure to commit with pre-commit tests passed
(previous commit updated rpi_cm4 revision numbers constants/boards.py line 492)
2022-09-07 00:18:47 -07:00
SimpleTheory
4d2617b37a Updated RpiCm4 revision numbers on line 492 2022-09-07 00:13:25 -07:00
Melissa LeBlanc-Williams
3c7e370c50
Merge pull request #241 from Sheng2216/main
add support for CM4 with 8GB ram
2022-08-26 07:37:36 -07:00
Sheng_L
6953a6ff01
add support for CM4 with 8GB ram 2022-08-26 11:44:15 +08:00
Melissa LeBlanc-Williams
2da28d30c5
Merge pull request #239 from rbalsan1/patch-1
Added beaglebone black revA6A support
2022-08-18 08:04:14 -07:00
rbalsan1
1a81aba797
ok I fixed board IDS 2022-08-18 10:32:21 -04:00
rbalsan1
4c24b1c37a
Added beaglebone black revA6A support 2022-08-17 07:44:54 -04:00
Melissa LeBlanc-Williams
e1460098ee
Merge pull request #237 from anhmiuhv/agxorin
add support for Jetson AGX Orin
2022-07-26 08:22:02 -07:00
linhhoang
dd60822283 add support for Jetson AGX Orin 2022-07-25 22:36:26 -07:00
Melissa LeBlanc-Williams
d8f247afa0
Merge pull request #236 from djhedges/main
Add detection support for the Banana Pi M5.
2022-07-22 08:08:22 -07:00
djhedges
b22430fb38 Bump spaces from 2 > 4 to fix pylint error 2022-07-21 10:20:41 -07:00
djhedges
249e398a03 Add detection support for the Banana Pi M5.
This maintains the prior S905X3 chip behavior of returning the ODROID_C4 board.

For some reason /proc/device-tree/compatible on the Banana Pi M5 has an additional space between "amlogic, g12a".
2022-07-21 10:14:37 -07:00
Melissa LeBlanc-Williams
9ea2588c5a
Merge pull request #235 from Ste-Trat/main
chip detection for STMP157 Single board computer from olimex
2022-07-14 08:26:21 -07:00
Ste-Trat
c1a9eda589
Update chip.py 2022-07-14 09:43:02 +02:00
Ste-Trat
bf4987d4e2
Update board.py 2022-07-14 09:42:37 +02:00
Ste-Trat
f661bf825c
Update chips.py 2022-07-14 09:42:13 +02:00
Ste-Trat
d4121d8cc5
Update boards.py 2022-07-14 09:41:40 +02:00
Ste-Trat
15bcc762e7
Update chip.py 2022-07-13 14:22:45 +02:00
Ste-Trat
70bc67824f
Update board.py 2022-07-13 14:22:22 +02:00
Ste-Trat
749f3396a4
Update boards.py 2022-07-13 14:21:21 +02:00
Ste-Trat
96069c05ea
Update board.py 2022-07-13 09:32:18 +02:00
Ste-Trat
a28633e567
Update chips.py 2022-07-13 09:24:42 +02:00
Ste-Trat
cd4c2da25e
Update boards.py 2022-07-13 09:18:43 +02:00
Ste-Trat
c91bced85e
Update chip.py 2022-07-13 09:13:34 +02:00
Ste-Trat
a464234a75
Update board.py 2022-07-13 09:09:49 +02:00
Ste-Trat
36600b17ad
Update chips.py 2022-07-12 18:02:25 +02:00
Ste-Trat
df92dec14a
Update boards.py 2022-07-12 18:01:28 +02:00
Ste-Trat
f0119bb5f7
Update chip.py 2022-07-12 17:59:21 +02:00
Ste-Trat
6f4016d7e3
Update board.py 2022-07-12 17:58:55 +02:00
Ryan L
3a1266a96c Format with Black code style 2022-06-22 21:37:56 +01:00
Ryan L
3df12dbab0 Update in line with the latest repo 2022-06-22 20:05:42 +01:00
Melissa LeBlanc-Williams
745892e128
Merge pull request #234 from simallaire/radxa_zero_fix
Add board to RockPi devices tuple
2022-06-02 09:12:39 -06:00
Simon-Pierre Allaire
0c0a5ac922 Add board to RockPi devices tuple 2022-06-02 00:22:32 -04:00
Melissa LeBlanc-Williams
41cd706ec9
Merge pull request #233 from simallaire/radxa_zero
Add Radxa Zero board
2022-06-01 09:09:07 -06:00
Simon-Pierre Allaire
2e56439587 Add Radxa Zero constants and checks 2022-05-31 22:28:46 -04:00
Melissa LeBlanc-Williams
7918e525f8
Merge pull request #232 from djairjr/main
Added possible support for orange pi 3 lts.
2022-05-31 12:44:37 -06:00
Melissa LeBlanc-Williams
3c13faf27b Fix docs language 2022-05-31 11:41:55 -07:00
Djair Guilherme
d7682481cd
Update board.py 2022-05-31 12:16:23 -03:00
Djair Guilherme
b0ece63b11
Update boards.py 2022-05-31 11:41:06 -03:00
Djair Guilherme
e06a4db926
Update board.py 2022-05-31 11:39:15 -03:00
Djair Guilherme
8ddad4e2be
Update boards.py 2022-05-31 11:36:16 -03:00
Ryan L
7bbf5c8257 Add board detection for the Pcduino2 and Pcduino3 2022-04-19 23:10:55 +01:00
Ryan L
b2f14b8351 Add chip detection for Allwinner A10 and A20 2022-04-19 17:16:23 +01:00
Ryan L
f5b7cd5e41 Add definitions for the Allwinner A10 and A20 chip along with pcduino boards 2022-04-19 16:38:55 +01:00
Melissa LeBlanc-Williams
7af3af8703
Merge pull request #230 from makermelissa/main
Fix typing errors for MicroPython
2022-04-04 11:57:28 -07:00
Melissa LeBlanc-Williams
86ced30067 Update to even newer version of black 2022-03-29 13:41:32 -07:00
Melissa LeBlanc-Williams
6e487c2df9 Remove futures and Detect import 2022-03-28 16:50:02 -07:00
Melissa LeBlanc-Williams
c468d32ee2 Fix click and black versions 2022-03-28 16:12:06 -07:00
Melissa LeBlanc-Williams
b81332fa2b Updated black to later version 2022-03-28 16:08:08 -07:00
Melissa LeBlanc-Williams
96ba0f6e4d a bit more linting 2022-03-28 16:02:37 -07:00
Melissa LeBlanc-Williams
b84f85883e linting 2022-03-28 16:01:29 -07:00
Melissa LeBlanc-Williams
02c4fb0d7c Fix typing errors for MicroPython 2022-03-28 15:53:03 -07:00
Melissa LeBlanc-Williams
ea71d32297
Merge pull request #228 from BytEvil/main
Add Khadas VIM3 board detection.
2022-03-17 08:10:11 -07:00
BytEvil
1cf970ac32
Khadas VIM3 board constants fix. 2022-03-17 09:17:44 +04:00
BytEvil
c7d2f71235
its not necessary 2022-03-16 16:22:12 +04:00
BytEvil
0a9d0f7647 Add Khadas VIM3 board detection. 2022-03-16 15:53:48 +04:00
Melissa LeBlanc-Williams
a65c30c953
Merge pull request #227 from shawaj/patch-1
feat: add new v1.5 raspberry pi 4b variants
2022-03-15 14:57:04 -07:00
Aaron Shaw
2d5cf23f03
feat: add new v1.5 raspberry pi 4b variants
adds newer raspberry pi 4b variants

Signed-off-by: Aaron Shaw <shawaj@gmail.com>
2022-03-15 21:42:22 +00:00
Dan Halbert
3fb5770a7a
Merge pull request #226 from makermelissa/main
Update Required Python to 3.7
2022-03-07 11:45:28 -05:00
Melissa LeBlanc-Williams
4666ca29d7
Merge pull request #224 from cdwilson/fix-shebang-in-detect-script
Move shebang to the beginning of the detect script
2022-03-07 08:25:19 -08:00
Melissa LeBlanc-Williams
d5dbc89856 Run pre-commmit 2022-03-07 08:19:35 -08:00
Melissa LeBlanc-Williams
39f7cfed00 Update Required Python to 3.7 2022-03-07 08:18:44 -08:00
Melissa LeBlanc-Williams
1096b735f8
Merge pull request #223 from cdwilson/support-homebrew-libusb
Support homebrew libusb on macOS
2022-03-07 08:11:33 -08:00
Chris Wilson
0ee6080b10 Move shebang to the beginning of the detect script 2022-03-04 16:11:24 -08:00
Chris Wilson
53ed144c1f Set DYLD search path for homebrew libs on macOS 2022-03-04 16:07:57 -08:00
Melissa LeBlanc-Williams
abe40555cb
Merge pull request #221 from makermelissa/main
Fixed Beaglebone Black detection for Kernel 5.10 or higher
2022-03-01 12:39:24 -08:00
Melissa LeBlanc-Williams
a5178c37c0 Fixed Beaglebone Black detection for Kernel 5.10 or higher 2022-03-01 12:09:22 -08:00
Melissa LeBlanc-Williams
edf96ea726
Merge pull request #219 from makermelissa/main
Added Type Annotations
2022-02-21 12:13:48 -08:00
Melissa LeBlanc-Williams
8b96843830 Added Type Annotations 2022-02-21 11:54:33 -08:00
tekktrik
e30948937a
Merge pull request #217 from makermelissa/main
Place rev codes in a more readable order
2022-02-17 12:08:26 -05:00
Melissa LeBlanc-Williams
3f72d6269e place rev codes in a more readable order 2022-02-17 09:04:23 -08:00
Limor "Ladyada" Fried
b6752eb1bb
Merge pull request #216 from stefan-hinterhoelzl/main
added new RPi Rev Code
2022-02-12 19:44:07 -05:00
stefan-hinterhoelzl
9004a9687d added new RPi Rev Code 2022-02-13 01:33:02 +01:00
Melissa LeBlanc-Williams
aade92b4d2
Merge pull request #215 from joedellerfc/new_pi4b_rev
New Pi4B board rev added
2022-02-07 10:47:41 -08:00
Joe Deller
17a2183982 New Pi4B board rev added 2022-02-07 18:39:18 +00:00
Limor "Ladyada" Fried
2fc4417d0e
Merge pull request #213 from caternuson/new_pi_rev
Add PI4 rev code c03115
2022-01-25 15:31:01 -05:00
caternuson
5bfdf96cb9 add pi rev code c03115 2022-01-25 12:03:23 -08:00
Melissa LeBlanc-Williams
64e63fe3af
Merge pull request #212 from cyx2/main
Added Raspberry Pi 4 Model B Rev 1.5 rev code b03115
2022-01-18 08:06:19 -08:00
Charlie Xu
0aa7034a58 Added Raspberry Pi 4 Model B Rev 1.5 rev code b03115 2022-01-16 09:31:51 -05:00
Melissa LeBlanc-Williams
73305d795a
Merge pull request #210 from llindeen/main
adding revision 2902120 for model Raspberry Pi Zero 2 W Rev 1.0
2022-01-10 08:17:06 -08:00
llindeen
1b0a09d244 Update boards.py
adding for board revision 2902120
2022-01-08 12:24:50 -05:00
llindeen
d2f1bf7c1d Update boards.py
Adding in 2902120 Revision for board below

Hardware        : BCM2835
Revision        : 2902120
Serial          : 000000007ff6f08d
Model           : Raspberry Pi Zero 2 W Rev 1.0
2022-01-08 11:53:14 -05:00
Melissa LeBlanc-Williams
6322f6d666
Merge pull request #208 from makermelissa/main
Fix docs to match Python 3.6 requirement
2022-01-04 08:37:31 -08:00
Melissa LeBlanc-Williams
686724f357 Fix docs to match Python 3.6 requirement 2022-01-04 08:25:21 -08:00
Melissa LeBlanc-Williams
49a4797a68
Merge pull request #207 from twa127/master
Add Support for Orange Pi 3
2022-01-04 08:14:48 -08:00
twa127
421e4ca54a
Update board.py 2022-01-04 13:14:27 +00:00
twa127
9b871b6a82
Update boards.py 2022-01-04 13:10:31 +00:00
Melissa LeBlanc-Williams
17391c45c9
Merge pull request #206 from tekktrik/doc/add-pre-commit
Add pre-commit and required library infrastructure
2021-12-16 09:10:54 -08:00
Alec Delaney
571ed01847 Correct license, remove docutils in favor of sphinx 2021-12-15 14:05:15 -05:00
Alec Delaney
a64b29fab0 Add module docstring for bin.detect.py 2021-12-15 14:04:47 -05:00
Alec Delaney
53fa9a129e Add licenses to files 2021-12-15 14:04:25 -05:00
Alec Delaney
6e416d8d2a Swap header written license for SPDX 2021-12-15 14:03:07 -05:00
Alec Delaney
06350dea3c Swap header written license for SPDX 2021-12-15 14:03:01 -05:00
Alec Delaney
acaf039566 Add encoding parameter to open() per pylint recommendation 2021-12-15 14:02:50 -05:00
Alec Delaney
0b8b169595 Swap header written license for SPDX 2021-12-15 14:00:12 -05:00
Alec Delaney
be489f49d3 Add encoding to open() functions per pylint recommendations 2021-12-15 13:59:36 -05:00
Alec Delaney
9ced3859c2 Add license to .pylintrc 2021-12-15 13:59:10 -05:00
Alec Delaney
977c305cfc Add license to .gitignore 2021-12-15 13:59:00 -05:00
Alec Delaney
82e7fe4eb7 Add license to release.yml 2021-12-15 13:58:48 -05:00
Alec Delaney
1004f7239a Add license to build.yml 2021-12-15 13:58:38 -05:00
Alec Delaney
269d5dc83b Update build.yml 2021-12-15 13:58:29 -05:00
Alec Delaney
746aaa509f Add pre-commit config file 2021-12-15 13:57:56 -05:00
Alec Delaney
306d91bb88 Add licenses to repo 2021-12-15 13:57:37 -05:00
Melissa LeBlanc-Williams
7accd4e605
Merge branch 'main' into main 2021-12-14 08:16:24 -08:00
Melissa LeBlanc-Williams
f2c92c6eb4
Merge pull request #204 from vpothukuchi/vp_tisk_addition
Added Texas Instruments TDA4VM SK board to the suported boards list.
2021-12-14 08:12:02 -08:00
Vijay Pothukuchi
6424d4d04e Added Texas Instruments TDA4VM SK board to the suported boards list. 2021-12-13 20:42:07 -06:00
Melissa LeBlanc-Williams
256c768512
Merge pull request #202 from CesarChavezRico/main
Feat: Adding H3 NanoPi Neo
2021-12-13 14:25:29 -08:00
cesar
e493b6afe0 Fix: Added requested support for allwinner variants 2021-12-13 14:00:11 -07:00
cesar
65d9901e59 Feat: Adding H3 NanoPi Neo 2021-12-11 02:58:59 -07:00
CamDavidsonPilon
6f944e2b12 typo 2021-12-06 20:40:43 -05:00
CamDavidsonPilon
1b733c0c3b First note that in the old code, the entire list is evaluated before the any() is called. Changing this code solves two issues. 1) if there is an error in one of these conditions, then the entire function won't error out immediately but may hit a True condition and exit early. 2) Most of these conditions are inexpensive lookups, but some, like 'any_raspberry_pi' perform lots of logic including an IO lookup 2021-12-06 18:21:20 -05:00
Melissa LeBlanc-Williams
f81d412e88
Merge pull request #199 from Avnet/MaaXBoard
Added full model name for MaaXBoards to fix conflict with other i.MX8M devices
2021-11-11 17:04:36 -08:00
zebular13
3274256bc8 MaaXBoards are now detected as generic linux boards 2021-11-03 14:49:39 -07:00
zebular13
3ce8bb163e Added full model name for MaaXBoards to fix conflict with other i.MX8M devices 2021-11-03 13:15:41 -07:00
Melissa LeBlanc-Williams
8784c46fa9 Fix parameter name for v2 2021-11-03 08:15:38 -07:00
Melissa LeBlanc-Williams
113d19d444
Merge pull request #198 from makermelissa/main
Pin docutils to older version to fix docs from failing
2021-11-03 08:07:34 -07:00
Melissa LeBlanc-Williams
bb71e65381 Pin docutils to older version 2021-11-02 16:35:36 -07:00
Melissa LeBlanc-Williams
75f6980622
Merge pull request #197 from coloradocarlos/main
Add OSD32MP1 RED board constants
2021-10-29 10:05:16 -07:00
Carlos Perez
422fb76d25
Merge pull request #1 from coloradocarlos/osd32mp1-red-support
Add support for the Octavo OSD32MP1 RED board
2021-10-29 10:31:02 -06:00
Carlos Perez
6af8d90ac2 Merge branch 'main' into osd32mp1-red-support 2021-10-29 07:26:34 -06:00
Melissa LeBlanc-Williams
b4670e78d9
Merge pull request #196 from aageso/Add-RPi400-rev1.1
Update boards.py
2021-10-28 15:00:31 -07:00
aageso
89cd134b3f
Update boards.py
Missing space
2021-10-28 23:20:09 +02:00
aageso
66bfaaa7bd
Update boards.py
Added revision c03131 to RASPBERRY_PI_400 line 447
2021-10-28 23:03:46 +02:00
Melissa LeBlanc-Williams
c857daec4b
Merge pull request #193 from makermelissa/main
Add Pi Zero 2 W Rev Code
2021-10-28 10:42:48 -07:00
Melissa LeBlanc-Williams
6c671748d8 Merge branch 'main' of https://github.com/adafruit/Adafruit_Python_PlatformDetect 2021-10-28 09:23:23 -07:00
Melissa LeBlanc-Williams
e3d05ed4d0
Merge pull request #192 from Avnet/MaaXBoard
MaaXBoard and MaaXBoard Mini are both detected
2021-10-28 09:23:10 -07:00
Melissa LeBlanc-Williams
f24bf9d23d Add Pi Zero 2 W Rev Code 2021-10-28 09:22:07 -07:00
Carlos Perez
878a32dc81 Merge branch 'main' into osd32mp1-red-support 2021-10-28 09:38:37 -06:00
zebular13
3b13324ba0 MaaXBoard and MaaXBoard Mini are both detected 2021-10-26 17:11:13 -07:00
Melissa LeBlanc-Williams
65d5035ab5
Merge pull request #189 from MoseMueller/MoseMueller-patch-1
Add Banana Pi M2 Zero to any embedded linux detection
2021-10-21 07:36:04 -07:00
Mose Mueller
cc2eee8b0e Formatting board.py with black 2021-10-21 09:32:44 +02:00
MoseMueller
58bb49c07f
Update board.py
Adding support for bananaPi M(P)2 Zero detection. When trying to initialise I2C for the BPI, busio.py from adafruit_blinka was always trying to import `adafruit_blinka.microcontroller.generic_micropython.i2c` which imported `machine` (not found by python). As the file `constants/boards.py` contained the BPI board I figured it should also be included in this file as "any embedded linux". This works for my BananaPi P2 Zero.
2021-10-18 09:42:05 +02:00
Carlos Perez
5da5a4dfad Add support for the Octavo OSD32MP1 RED board 2021-10-15 08:22:22 -06:00
Carter Nelson
4769224053
Merge pull request #185 from jfurcean/add_macropad_rp2040
Add MacroPad RP2040 u2if Detection
2021-10-14 08:02:01 -07:00
John Furcean
881dddc7be fix comment 2021-10-14 08:18:40 -04:00
John Furcean
2c46b7d4e7 update macropad PID 2021-10-06 19:17:52 -04:00
John Furcean
0e665c9d0a Merge branch 'main' of https://github.com/adafruit/Adafruit_Python_PlatformDetect into add_macropad_rp2040 2021-10-06 19:15:17 -04:00
Carter Nelson
9a750439e6
Merge pull request #186 from jfurcean/pin_pylint
Pin PyLint
2021-10-06 14:13:17 -07:00
John Furcean
356646dc40 fix name label 2021-10-06 17:10:09 -04:00
John Furcean
abdd8062bf pin pylint 2021-10-06 17:02:20 -04:00
John Furcean
8ad9381f8f Pin PyLint 2021-10-06 16:56:56 -04:00
John Furcean
30144d6da3 add MacroPad RP2040 2021-10-06 15:02:47 -04:00
Limor "Ladyada" Fried
00db106377
Merge pull request #184 from makermelissa/main
Added 40 pin raspberry pi to any embedded linux
2021-07-16 19:50:48 -04:00
Melissa LeBlanc-Williams
08802f46ea Added 40 pin raspberry pi to any embedded linux 2021-07-16 16:29:26 -07:00
Melissa LeBlanc-Williams
0f41f6cbac
Merge pull request #183 from makermelissa/main
Added BeagleV StarLight to BEAGLEBONE_BOARD_IDS
2021-07-16 12:52:00 -07:00
Melissa LeBlanc-Williams
4a698ac70c Added Beaglebone StarFive to BEAGLEBONE_BOARD_IDS 2021-07-16 08:58:30 -07:00
Melissa LeBlanc-Williams
84f0f9812c
Merge pull request #182 from makermelissa/main
Fixed BeagleBoard Star V detection on latest build
2021-07-15 12:46:32 -07:00
Melissa LeBlanc-Williams
4d5157d9c4 Linted 2021-07-15 11:58:49 -07:00
Melissa LeBlanc-Williams
3c74e9cf1d Merge branch 'main' of https://github.com/adafruit/Adafruit_Python_PlatformDetect 2021-07-15 11:54:07 -07:00
Melissa LeBlanc-Williams
553b3cd13a
Merge pull request #175 from lesamouraipourpre/u2if
Move the U2IF constant definitions to a single file so they are not duplicated
2021-07-15 11:49:32 -07:00
Melissa LeBlanc-Williams
70d318a41a Fixed BeagleBoard Star V detection on latest build 2021-07-15 11:39:51 -07:00
James Carr
3cb6bdcaa0 Merge remote-tracking branch 'upstream/main' into u2if 2021-06-29 17:05:07 +01:00
Melissa LeBlanc-Williams
1c3f435d24
Merge pull request #180 from makermelissa/main
Move Generic X86 to bottom
2021-06-28 10:15:20 -07:00
Melissa LeBlanc-Williams
7aa9e4afe4 Move Generic X86 to bottom 2021-06-28 09:31:52 -07:00
Melissa LeBlanc-Williams
abfa20b4c0
Merge pull request #179 from twa127/master
Re-order checks for Allwinner H616 and H6
2021-06-22 10:27:45 -07:00
twa127
1e5c42bfdd
Update chip.py 2021-06-22 18:25:05 +01:00
James Carr
f90fba8663
Merge branch 'u2if' of github.com:lesamouraipourpre/Adafruit_Python_PlatformDetect into u2if 2021-06-21 09:59:19 +01:00
James Carr
9a0657bcfc
For U2IF have a single value of RP2040_U2IF in chips and a value for each board in boards.
Note: This will need a matching update to Adafruit_Blinka if this is merged.
2021-06-21 09:39:50 +01:00
James Carr
9fcb7a492b
Update .pylintrc 2021-06-21 09:38:16 +01:00
Melissa LeBlanc-Williams
74533c35b0
Merge pull request #177 from anhmiuhv/jaxi2
Add support for Jetson Xavier Industrial
2021-06-17 11:24:40 -07:00
linhhoang
f19f4eaff4 Add support for Jetson Xavier Industrial 2021-06-16 16:58:31 -07:00
James Carr
afc9e56d83
Reformat with black 2021-06-15 14:04:53 +01:00
James Carr
ff9d00d1d0
Moves the U2IF constant definitions to a single file so they are not repeated. (Closes #174)
This gets "pylint $( find . -path './adafruit*.py' )" to 10/10.
This will also enable pre-commit to succeed when it is installed.
2021-06-15 09:22:12 +01:00
Melissa LeBlanc-Williams
9f5262fe31 Merge branch 'master' of https://github.com/adafruit/Adafruit_Python_PlatformDetect 2021-06-08 15:03:50 -07:00
Melissa LeBlanc-Williams
a9f28682f8
Merge pull request #171 from timonsku/patch-2
Add rervision code for 8 GB CM4 Lite with WiFi
2021-06-08 15:03:42 -07:00
Melissa LeBlanc-Williams
c35ca621a2 Add missing CM4 Revision 2021-06-08 15:03:07 -07:00
Melissa LeBlanc-Williams
afda67b544
Merge pull request #172 from fede2cr/master
Sticking to naming convention, testing on real hw!
2021-05-24 11:09:10 -07:00
Alvaro Figueroa
6cac3e648d Sticking to naming convention, testing on real hw! 2021-05-23 13:55:37 -06:00
Timon
bc561c5c4d
formatting fix 2021-05-22 20:49:42 +02:00
Timon
bd054034ba
Add rervision code for 8 GB CM4 Lite with WiFi 2021-05-22 18:24:09 +02:00
Carter Nelson
7a79652b92
Merge pull request #170 from caternuson/more_u2ifs
Adding more u2if firmware boards
2021-05-21 16:16:34 -07:00
caternuson
39348fc728 Merge remote-tracking branch 'adafruit/master' into more_u2ifs 2021-05-21 15:23:03 -07:00
caternuson
b42d6a8b95 update USB PIDs 2021-05-21 11:58:14 -07:00
caternuson
f956bf3c69 typo fix 2021-05-19 13:38:39 -07:00
caternuson
f6e1cf5ff7 add qt2040 trinkey 2021-05-19 13:07:12 -07:00
caternuson
07dca5bafa initial working 2021-05-14 10:50:40 -07:00
Melissa LeBlanc-Williams
626790ec55
Merge pull request #168 from razvanphp/master
add ConnectTech Boson board for Jetson NX
2021-05-13 12:54:32 -07:00
Razvan Grigore
c3faa38579 add ConnectTech Boson board for Jetson NX 2021-05-13 21:37:21 +02:00
Melissa LeBlanc-Williams
ca9cd157f3
Merge pull request #166 from twa127/master
Add Support for Rock Pi E
2021-05-10 13:57:29 -07:00
twa127
6cb13015ad
Update board.py 2021-05-10 20:55:36 +01:00
twa127
cbf7ae7363
Add files via upload 2021-05-10 20:21:36 +01:00
Melissa LeBlanc-Williams
bd166a3e10
Merge pull request #164 from twa127/master
Fix for #151 Support Allwinner detection on non armbian distros
2021-05-10 07:57:43 -07:00
twa127
566dbcd9a0 Merge branch 'adafruit:master' into master 2021-05-10 15:54:09 +01:00
twa127
aec4ec9aa8
Add files via upload 2021-05-10 15:53:54 +01:00
Melissa LeBlanc-Williams
d59c78823c
Merge pull request #163 from makermelissa/master
Added Raspberry Pi Pico detection for MicroPython
2021-05-06 17:57:13 -07:00
Melissa LeBlanc-Williams
1c41c6ae22 Added Raspberry Pi Pico detection for MicroPython 2021-05-06 17:34:51 -07:00
Melissa LeBlanc-Williams
5d2e863eec
Merge pull request #161 from makermelissa/master
Fix MicroPython errors
2021-05-06 16:56:18 -07:00
Melissa LeBlanc-Williams
30ee85a931 Fix MicroPython errors 2021-05-06 16:06:05 -07:00
Melissa LeBlanc-Williams
360013af9d
Merge pull request #160 from twa127/master
Fix for Orange Pi Zero 2 detection
2021-05-05 13:12:35 -07:00
twa127
ba98c76652
Update board.py 2021-05-05 20:07:31 +01:00
twa127
67e69af7e6
Update chip.py 2021-05-05 20:04:19 +01:00
twa127
adb8a4237c
Merge pull request #5 from adafruit/master
Merge
2021-05-05 20:00:00 +01:00
Melissa LeBlanc-Williams
410a8e2973
Merge pull request #157 from twa127/master
Add PineH64 Model B detection
2021-05-05 11:28:25 -07:00
Melissa LeBlanc-Williams
1e45904f03
Merge pull request #155 from jaesivsm/remove-unecessary-close
Remove unecessary file close
2021-05-05 11:27:59 -07:00
twa127
f6bf2ed5ad
Update chip.py 2021-05-03 14:31:49 +01:00
twa127
e1dedd7e40
Merge pull request #4 from adafruit/master
Merge
2021-05-03 14:29:49 +01:00
François Schmidts
3c9133d44d Fixing pylint warning about missing return statements 2021-04-28 09:44:29 +02:00
François Schmidts
fbc95067c8 Remove unecessary file close 2021-04-27 22:23:34 +02:00
Melissa LeBlanc-Williams
31a4811f40
Merge pull request #154 from fede2cr/master
Adding support for BeagleV Starfive, with VIC-U7 processor
2021-04-26 13:06:57 -07:00
Alvaro Figueroa
e334f666c3 Swapped boards. Beagle is VIC, Allwinner y D1 2021-04-26 13:56:14 -06:00
Alvaro Figueroa
994e122e43 Fixing dup VIC-U7 elifs 2021-04-26 13:53:51 -06:00
Alvaro Figueroa
cf626beec4 Adding support for the BeagleV Starfive, chip VIC-U7 2021-04-25 22:36:23 -06:00
Alvaro Figueroa
dd3057d640 Adding support for the BeagleV Starfive, chip VIC-U7 2021-04-25 22:34:40 -06:00
Alvaro Figueroa
be125097ef Fixing beagle id 2021-04-25 22:28:35 -06:00
Alvaro Figueroa
d720af9cc6 Adding support for the BeagleV Starfive, chip VIC-U7 2021-04-25 22:22:37 -06:00
Melissa LeBlanc-Williams
98ee83b14b
Merge pull request #153 from fede2cr/master
Adding support for Allwinner D1 with Xuantie-C906
2021-04-22 09:11:09 -07:00
Alvaro Figueroa
c9255ede34 assignment error 2021-04-22 09:18:39 -06:00
Alvaro Figueroa
dde8a230dc Adding support for Allwiner D1 with XuanTie C906 2021-04-22 09:03:54 -06:00
Limor "Ladyada" Fried
54358c4f65
Merge pull request #152 from caternuson/pico_u2if
Add Pico u2if
2021-04-19 23:50:42 -04:00
caternuson
1ea89bdac7 add pico u2if 2021-04-19 17:53:27 -07:00
Melissa LeBlanc-Williams
59edca95e6
Merge pull request #149 from tigard-tools/master
FT2232H support
2021-04-05 09:40:22 -07:00
Franklin Harding
8a40e3d092 Merge remote-tracking branch 'upstream/master' 2021-03-28 18:04:47 -07:00
Melissa LeBlanc-Williams
23121c6bb5
Merge pull request #148 from NathanY3G/support-older-rpi-model-b-rev2
Add support for Raspberry Pi Model B Rev 2 (0004)
2021-03-21 10:31:09 -07:00
Nathan Young
e97875ee46 Add support for Raspberry Pi Model B Rev 2 (0004) 2021-03-21 12:52:31 +01:00
Melissa LeBlanc-Williams
3e36c50c4a
Merge pull request #146 from TeslaK20/master
Added detection for OSD32MP1 development board.
2021-03-12 08:05:02 -08:00
Melissa LeBlanc-Williams
013d2e27d4
Update board.py
Remove double spacing
2021-03-12 08:04:32 -08:00
Geffen Avraham
0a73977e8a Fixed reformatting. 2021-03-11 19:20:18 +00:00
Geffen Avraham
a01ac306ba Added detection for OSD32MP1 development board. 2021-03-11 17:54:49 +00:00
Melissa LeBlanc-Williams
8ebe99ca5a
Merge pull request #145 from thomoray/add-rockpi4c-support
Add Rock Pi 4c Support
2021-03-08 08:17:27 -08:00
Ray Thomson
0bf1431380 Code reformat 2021-03-06 21:50:27 +11:00
Ray Thomson
399488158b Add Rock Pi 4c Support
Added Rock Pi 4c Support
2021-03-04 21:59:50 +11:00
Melissa LeBlanc-Williams
091cd9b2e3
Merge pull request #143 from anhmiuhv/tx2_nx
Add support for NVIDIA TX2 NX
2021-02-25 08:25:42 -08:00
linhhoang
8447c058b3 Add support for NVIDIA TX2 NX 2021-02-24 20:29:15 -05:00
Melissa LeBlanc-Williams
e0fe1b0128
Merge pull request #142 from lukschwalb/master
Add Revision ID for Pi CM4
2021-02-16 10:12:20 -08:00
lukschwalb
ba05171224 Add Revision ID for Pi CM4 2021-02-16 18:54:36 +01:00
Melissa LeBlanc-Williams
e5839d2cf1
Merge pull request #141 from twa127/master
Add Support for OrangePi Zero2 H616
2021-02-08 08:11:30 -08:00
twa127
48cbed1216
Update chips.py 2021-02-06 23:03:58 +00:00
twa127
91c1b49fbe
Update boards.py 2021-02-06 23:02:45 +00:00
twa127
621592758e
Update chip.py 2021-02-06 23:00:52 +00:00
twa127
86d416c1d3
Update board.py 2021-02-06 22:59:33 +00:00
twa127
7fedf5d396
Merge pull request #3 from adafruit/master
Merge
2021-02-06 22:57:34 +00:00
Melissa LeBlanc-Williams
134ebac6eb
Merge pull request #139 from makermelissa/master
Change minimum Python to 3.6
2021-02-03 08:54:59 -08:00
Melissa LeBlanc-Williams
604c5a0c55 Change minimum Python to 3.6 2021-02-03 08:50:28 -08:00
Jeff Epler
b25f2d6566
Merge pull request #138 from makermelissa/master
Add NanoPi NEO Air and NanoPi Duo2 detection
2021-01-20 16:16:05 -06:00
Melissa LeBlanc-Williams
45745658bb Merge branch 'master' of https://github.com/adafruit/Adafruit_Python_PlatformDetect 2021-01-20 12:43:56 -08:00
Melissa LeBlanc-Williams
febd68b395 Add NanoPi NEO Air and NanoPi Duo2 support 2021-01-20 12:32:34 -08:00
Jeff Epler
c57f666601
Merge pull request #137 from makermelissa/master
Fix None type not iterable issue on Github actions
2021-01-18 18:04:43 -06:00
Melissa LeBlanc-Williams
2e344175f4 Fix None type not iterable issue on Github actions 2021-01-18 13:33:21 -08:00
Melissa LeBlanc-Williams
e3f892eacc
Merge pull request #136 from makermelissa/bbai
Add BeagleBone AI Detection
2021-01-18 11:56:04 -08:00
Melissa LeBlanc-Williams
ea97500ec4 Update detect to work on multiple Beaglebone boards 2021-01-18 11:25:00 -08:00
Melissa LeBlanc-Williams
01b3d6ecfd Add BeagleBone AI Detection 2021-01-18 11:19:27 -08:00
Melissa LeBlanc-Williams
f7f06c37cd
Merge pull request #135 from makermelissa/master
Explicitly close files after use
2021-01-18 11:19:02 -08:00
Melissa LeBlanc-Williams
27e60ee22f Change docstring to be more accurate 2021-01-18 11:17:14 -08:00
Melissa LeBlanc-Williams
d9a251b321 Explicitly close files after use 2021-01-18 10:45:52 -08:00
Melissa LeBlanc-Williams
64621eca75
Merge pull request #132 from HoSStiA/rockpix
Adding Radxa ROCK Pi X detection
2021-01-15 09:43:04 -07:00
Hosstia Cortes
8f73ec9fef Adding Radxa ROCK Pi X detection
Adding detection for the Radxa ROCK Pi X.
SoC: Intel(R) Atom(TM) x5-Z8350

Signed-off-by: Hosstia Cortes <hosstia@gmail.com>
2021-01-14 19:51:47 +03:00
Melissa LeBlanc-Williams
a4e3061ba4
Merge pull request #131 from twa127/master
Add Support for Orange pi Zero Plus Board
2021-01-14 09:10:31 -07:00
Melissa LeBlanc-Williams
9e5cc5eb2b
Merge pull request #130 from flyleaf91/master
Add support for LubanCat i.MX6ULL and STM32MP157
2021-01-14 09:09:56 -07:00
twa127
9bada625a3
Update board.py 2021-01-14 08:41:13 +00:00
twa127
db02a86e64
Update boards.py 2021-01-14 08:38:38 +00:00
twa127
97fd3f9f70
Merge pull request #2 from adafruit/master
Merge
2021-01-14 08:24:28 +00:00
flyleaf91
e277535f63 Add support for LubanCat i.MX6ULL and STM32MP157 2021-01-13 11:34:24 +00:00
Melissa LeBlanc-Williams
e1356fc255
Merge pull request #129 from makermelissa/master
Added another Pi CM4 Rev ID
2021-01-04 09:48:55 -07:00
Melissa LeBlanc-Williams
776dcd5b23 Added another Pi CM4 Rev ID 2021-01-04 08:45:34 -08:00
Melissa LeBlanc-Williams
ffef1f3d07
Merge pull request #126 from twa127/master
Enable chip detect for Orange Pi Zero Plus2 H5
2021-01-04 09:45:02 -07:00
twa127
4efebcfc01
Update board.py 2020-12-31 18:00:55 +00:00
twa127
f061f49fce
Update chip.py 2020-12-31 17:55:23 +00:00
twa127
fdbfd066e1
Merge pull request #1 from adafruit/master
Merge
2020-12-31 17:52:56 +00:00
Limor "Ladyada" Fried
168ff6b665
Merge pull request #125 from ladyada/master
fix black
2020-12-10 18:12:05 -05:00
lady ada
f30f7c9b64 fix black 2020-12-10 18:05:09 -05:00
Limor "Ladyada" Fried
933b280467
Merge pull request #124 from PTS93/patch-1
Add support for Raspberry Pi CM4
2020-12-10 17:52:54 -05:00
Timon
3a00e32626
Add support for Raspberry Pi CM4 2020-12-10 23:44:15 +01:00
Melissa LeBlanc-Williams
fb283c412c
Merge pull request #121 from scottamain/master
Add detection for Coral Dev Board Mini
2020-12-07 10:39:41 -07:00
Limor "Ladyada" Fried
0461785c72
Merge pull request #122 from mcauser/patch-1
Fix expired Discord link
2020-12-07 10:10:03 -05:00
Mike Causer
800fdb0473
Fix expired Discord link 2020-12-08 01:13:02 +11:00
Melissa LeBlanc-Williams
d67b4603de
Merge pull request #120 from scottamain/patch-1
Fix documentation title
2020-11-30 09:10:30 -07:00
Scott Main
1e83152b46 Add detection for Coral Dev Board Mini 2020-11-29 11:53:21 -08:00
Scott Main
aceb21ec30
Fix documentation title
Using the Blinka title is canibalizing page rank for the real Blinka library docs.
2020-11-24 20:47:41 -08:00
Limor "Ladyada" Fried
81c369bf31
Merge pull request #119 from makermelissa/master
Add missing Pi 4 Rev code
2020-11-18 15:25:09 -05:00
Melissa LeBlanc-Williams
70b9dd7a61 Add missing Pi 4 Rev code 2020-11-18 12:06:21 -08:00
Limor "Ladyada" Fried
94bbfd5b47
Merge pull request #118 from SecT0uch/master
SoPine (Pine64) detection
2020-11-17 20:42:39 -05:00
Jordan ERNST
141ac825c9 SoPine (Pine64) detection 2020-11-17 10:29:29 +01:00
Limor "Ladyada" Fried
5fe73c7216
Merge pull request #117 from makermelissa/master
Adding Raspberry Pi 400 detection
2020-11-02 14:47:29 -05:00
Melissa LeBlanc-Williams
71f439703d Adding Raspberry Pi 400 detection 2020-11-02 11:43:48 -08:00
Melissa LeBlanc-Williams
9b8c8cdd67
Merge pull request #90 from dmanla/master
Added PineH64 detection; Modified Allwinner A64 Detection
2020-11-01 10:36:56 -07:00
Melissa LeBlanc-Williams
1f6b3f056f Removed long line 2020-11-01 09:34:23 -08:00
Melissa LeBlanc-Williams
ffbbf59487
Merge branch 'master' into master 2020-11-01 10:19:54 -07:00
Melissa LeBlanc-Williams
d2ccda4c11
Merge pull request #110 from jolesieur/patch-1
Added support for BeagleBone Green Gateway
2020-11-01 10:16:33 -07:00
Melissa LeBlanc-Williams
25d750d9ca
Merge pull request #114 from twa127/patch-2
Support for Orange Pi Zero Plus2 H5
2020-11-01 10:13:06 -07:00
Melissa LeBlanc-Williams
d7457a85a0 Merge remote-tracking branch 'twa127/patch-4' into patch-2 2020-11-01 09:10:33 -08:00
Melissa LeBlanc-Williams
72a7a38be3 Merge remote-tracking branch 'twa127/patch-3' into patch-2 2020-11-01 09:10:28 -08:00
twa127
97ee9a9415
Update chips.py 2020-10-31 20:54:51 +00:00
twa127
9ec299e072
Update boards.py 2020-10-31 20:53:19 +00:00
twa127
74e1d05857
Update board.py 2020-10-31 20:50:28 +00:00
Limor "Ladyada" Fried
5423a45e2f
Merge pull request #113 from makermelissa/master
Change Pine64 to use dt-compatible
2020-10-31 11:35:44 -04:00
Melissa LeBlanc-Williams
1fa338d969 Change Pine64 to use dt-compatible 2020-10-31 08:23:51 -07:00
Melissa LeBlanc-Williams
bcb244845c
Merge pull request #111 from twa127/master
Support for Banana Pi M2 Zero
2020-10-30 13:06:16 -06:00
twa127
f1ed7750b2
Update boards.py 2020-10-30 17:16:04 +00:00
twa127
c08f180aa6
Update board.py 2020-10-30 17:12:31 +00:00
jolesieur
0c1d3b700c
Added support for BeagleBone Green Gateway
Added support for the BeagleBone Green Gateway from Seeed Studio.
2020-10-28 13:31:25 -04:00
Limor "Ladyada" Fried
c5f50bd6c3
Merge pull request #108 from l-r-r/contribution
Add support for RPi 4 Model B Rev 1.4
2020-10-24 17:45:34 -04:00
l-r-r
78c7df9733 Add support for RPi 4 Model B Rev 1.4
Add rev_code "b03114" in _PI_REV_CODES to support Rev 1.4 of RPi 4B.
2020-10-24 22:07:06 +02:00
Melissa LeBlanc-Williams
82d923e9ac
Merge pull request #105 from CrazyIvan359/fix-amdgeneric
Fix generic amd not returning a chip
2020-10-19 08:31:44 -06:00
Melissa LeBlanc-Williams
2079a987f3
Merge pull request #106 from swarren/fix-any_jetson_board
Fix any_jetson_board after _JETSON_IDS type change
2020-10-12 09:50:59 -06:00
Michael Murton
e1661ce56a
fix generic amd not returning a chip ref #96 2020-10-12 11:10:42 -04:00
Stephen Warren
2516a166f4 Fix any_jetson_board after _JETSON_IDS type change
Fixes issue 103
Fixes: e3fede2f5c ("Convert _JETSON_IDS to a tuple")
2020-10-11 18:32:05 -06:00
Melissa LeBlanc-Williams
1a7e2714bc
Merge pull request #101 from swarren/clara-agx-xavier
Add support for NVIDIA Clara AGX Xavier
2020-10-06 17:58:17 -06:00
Stephen Warren
f41f70e1ab Add support for NVIDIA Clara AGX Xavier 2020-10-05 15:46:34 -06:00
Stephen Warren
e3fede2f5c Convert _JETSON_IDS to a tuple
This will allow us to control the order that each entry is checked,
whereas the current dictionary is unordered. This will be useful when
adding support for future very similar boards.
2020-10-05 15:46:34 -06:00
Melissa LeBlanc-Williams
89b73da013
Merge pull request #100 from makermelissa/master
Implemented simple chip id and board id caching
2020-09-11 11:20:38 -07:00
Melissa LeBlanc-Williams
ebcb4a0cb2 Implemented simple chip id and board id caching 2020-09-11 08:58:45 -07:00
Melissa LeBlanc-Williams
699f9114eb
Merge pull request #99 from makermelissa/master
Allow latest release of black to run
2020-09-10 20:59:08 -07:00
Melissa LeBlanc-Williams
72a23600f4 Allow latest release of black to run 2020-09-10 16:56:12 -07:00
Jeff Epler
366a41f603
Merge pull request #97 from makermelissa/master
Added STM32MP1 detection
2020-09-05 19:02:21 -05:00
Melissa LeBlanc-Williams
95a3fdd7ad Renamed STM32 to STM32F405 because it was too generic 2020-09-04 10:15:15 -07:00
Melissa LeBlanc-Williams
67854a2d13 Remove bad-whitespace pylint option 2020-09-03 11:06:51 -07:00
Melissa LeBlanc-Williams
ec95b17d19 Added STM32MP1 detection 2020-09-03 11:01:06 -07:00
Melissa LeBlanc-Williams
0de2f8b82b
Merge pull request #95 from zzts/master
Pentium N3710 (Braswell SOC) on UDOO x86
2020-08-11 11:46:03 -07:00
kent
da46b462ce formatted with black and pylint 2020-08-11 11:28:40 -07:00
kent
69e54cbe5d Corrected pylint reported formatting issues
whitespaces removed. = surrounded with spaces and removed redundant else:
2020-08-11 11:13:24 -07:00
kent
5d80f7eb91 Merge branch 'udoo' 2020-08-10 23:35:41 -07:00
kent
c7114215b3 Added Udoo x64 boards
tested on Udoo x64 ultra II
2020-08-10 23:25:20 -07:00
kent
01b7ff76c9 detect Pentium_N3710 (Braswell core)
detect Udoo x64 cpu
2020-08-10 23:19:00 -07:00
kent
ae007c0fbf Added code to read board name from system 2020-08-10 23:14:00 -07:00
Limor "Ladyada" Fried
c207b2ffed
Merge pull request #93 from makermelissa/master
Clean up Tinkerboard detection
2020-08-10 19:27:54 -04:00
kent
528efbc783 add Pentium_N3700 Braswell SOC for UDOO x64 2020-08-10 15:48:42 -07:00
Melissa LeBlanc-Williams
28dd57733d Ran black 2020-08-10 14:24:20 -07:00
Melissa LeBlanc-Williams
dc6475f9ec Clean up Tinkerboard detection 2020-08-10 14:23:25 -07:00
Melissa LeBlanc-Williams
2908910ee5
Merge pull request #92 from makermelissa/master
Fix false positive on Tinkerboard
2020-07-28 14:36:22 -07:00
Melissa LeBlanc-Williams
e46a1867c3 Fix formatting 2020-07-28 14:34:36 -07:00
Melissa LeBlanc-Williams
c52b24b515 Fix false positive on Tinkerboard 2020-07-28 14:29:26 -07:00
Daniel Manla
3f334213a1
Fixed formatting via "black" 2020-07-28 14:38:48 -04:00
Melissa LeBlanc-Williams
4b820a0de7
Merge pull request #91 from makermelissa/master
Add missing Raspberry Pi 2 Rev code
2020-07-28 10:48:16 -07:00
Melissa LeBlanc-Williams
b4998383c7 Add missing Raspberry Pi 2 Rev code 2020-07-28 10:44:35 -07:00
Daniel Manla
578742c684
Modified a comment for clarification 2020-07-23 15:26:07 -04:00
Daniel Manla
e586f7e1c5
Add PineH64 and Allwinner H6 constants 2020-07-23 15:21:25 -04:00
Daniel Manla
ee64a3d3b0
Added Allwinner H6; Modified Allwinner A64
In chip.py hardware identifiers take precedence over all other forms of chip detection. This causes issues with differentiating between the Allwinner H6 and Allwinner A64. Both the Allwinner H6 and Allwinner A64 return "sun50iw1p1 when checking the cpu info Hardware field. I have added logic to prevent the use of sun50iw1p1 as an identifier. I have added additional logic which successfully detects the Allwinner H6.
2020-07-23 15:20:03 -04:00
Daniel Manla
111daa078b
Add PineH64 to board detection 2020-07-23 15:14:21 -04:00
Melissa LeBlanc-Williams
5cdf8afd30
Merge pull request #88 from fpdotmonkey/bugfix/check_dt_compatible_value_memory_leak
Fixed an issue where `__init__.check_dt_compatible_value` opened a file…
2020-07-02 08:29:34 -07:00
Fletcher Porter
e2f1b673de Fixed an issue where __init__.check_dt_compatible_value opened a file but did not close it and thus caused a memory leak and a ResourceWarning. 2020-07-02 07:51:08 +01:00
Melissa LeBlanc-Williams
1b43d2a1f4
Merge pull request #84 from BlitzCityDIY/master
Adding Tinker Board detection
2020-06-26 10:55:06 -07:00
BlitzCityDIY
24124352c3 Changing to use function
Changing to use function _asus_tinker_board_id() in board.py
2020-06-26 13:52:16 -04:00
Franklin Harding
34d046ad1a Add support for detecting FT2232H 2020-06-17 09:14:02 -07:00
BlitzCityDIY
834f1b32d2 Changing to _ASUS_TINKER_BOARD_IDS
Updating to boards._ASUS_TINKER_BOARD_IDS
2020-06-16 18:51:56 -04:00
BlitzCityDIY
d81e9f7680 Merge remote-tracking branch 'upstream/master' 2020-06-16 15:17:49 -04:00
BlitzCityDIY
2e4da977f1 Merge branch 'master' of https://github.com/BlitzCityDIY/Adafruit_Python_PlatformDetect 2020-06-02 18:55:40 -04:00
BlitzCityDIY
8f4bf4a94f Adding _ASUS_TINKER_BOARD_IDS
Changed some things up to have everything match formatting for multiple boards so that more Tinker Board types can be added easily (I'm hoping to add the S after the original Tinker Board is all set)
2020-06-02 18:51:33 -04:00
BlitzCityDIY
6333865b87 Changing ASUS_TINKER_BOARD to _ASUS_TINKER_BOARD
Changing ASUS_TINKER_BOARD to _ASUS_TINKER_BOARD. Should be last commit, thank you for all your help and guidance!
2020-06-02 10:24:40 -04:00
Limor "Ladyada" Fried
6b0847d4cd
Merge pull request #87 from SpasilliumNexus/patch-1
Add revision code for 8GB model Raspberry Pi 4B
2020-06-01 23:08:54 -04:00
Tommy
6776b983fe
Add revision code for 8GB model Raspberry Pi 4B 2020-06-01 22:47:51 -04:00
Limor "Ladyada" Fried
71653a67b3
Merge pull request #86 from makermelissa/master
Added missing rev codes for newer Raspberry Pi 2
2020-06-01 12:15:51 -04:00
Melissa LeBlanc-Williams
1cc0239aba Black formatted 2020-06-01 08:22:11 -07:00
Melissa LeBlanc-Williams
63a6103b7c Added missing rev codes for newer Raspberry Pi 2 2020-06-01 08:21:44 -07:00
BlitzCityDIY
3eaf2add35 Reformatted with Black
Reformatted with Black- sorry for all the back and forth, it's my first time doing something like this.
2020-05-29 15:31:38 -04:00
BlitzCityDIY
d0e22d04d6 Updating pylint
fixing pylint errors
2020-05-29 15:25:32 -04:00
BlitzCityDIY
07e8625558 Black formatting
updating chip.py and boards.py to be Black formatted
2020-05-29 14:38:13 -04:00
BlitzCityDIY
f6cf2cd767 Updating board.py
adding any_asus_tinker_board for embedded linux system identification
2020-05-29 13:57:16 -04:00
BlitzCityDIY
98cdaa4bba Adding Tinker Board detection
Adding detection for the ASUS Tinker Board SBC.
SoC: Rockchip 3288 (RK3288)
2020-05-29 13:00:37 -04:00
Melissa LeBlanc-Williams
1067d517c2
Merge pull request #83 from geekguy-wy/add_udoo_bolt_detect
Added UDOO Bolt V3 and V8 detection. Original Bolt is Bolt V8 now
2020-05-25 10:08:51 -07:00
Dale Weber
ebb72a406d Added UDOO Bolt V3 and V8 detection. Original Bolt is Bolt V8 now 2020-05-24 14:02:33 -07:00
Melissa LeBlanc-Williams
a1cbc7b1f9
Merge pull request #81 from geekguy-wy/add_udoo_bolt_detect
Added board detection for UDOO Bolt using check_board_asset_value()
2020-05-22 17:19:56 -07:00
geekguy-wy
e16fed57a8
Merge pull request #1 from makermelissa/udoo_bolt
Updated Code for Udoo bolt ID - merging changes
2020-05-22 17:17:23 -07:00
Melissa LeBlanc-Williams
61c0859544 Merge branch 'master' of https://github.com/adafruit/Adafruit_Python_PlatformDetect into udoo_bolt 2020-05-21 07:30:22 -07:00
Melissa LeBlanc-Williams
e8b0a2c1e5
Merge pull request #82 from hhk7734/odroid-xu4
ODROID-XU4: add support for Hardkernel Odroid XU4
2020-05-21 07:30:06 -07:00
Melissa LeBlanc-Williams
f418f0f16d Black formatting, fixed syntax error 2020-05-21 07:24:36 -07:00
Melissa LeBlanc-Williams
125f2adf90 Updated code to search board IDs 2020-05-21 07:18:13 -07:00
Melissa LeBlanc-Williams
3fedb68c85 Merge branch 'add_udoo_bolt_detect' of https://github.com/geekguy-wy/Adafruit_Python_PlatformDetect into udoo_bolt 2020-05-21 07:05:28 -07:00
Hyeonki Hong
f5bfd071fe ODROID-XU4: add support for Hardkernel Odroid XU4 2020-05-21 16:31:03 +09:00
Dale Weber
4c3b2190e5 Fixed error - added ':' in if statement.' 2020-05-20 09:22:13 -07:00
Dale Weber
ab2bd7dee4 Changed names of UDOO_IDS and UDOO_ASSET_TAG; Corrected layout of UDOO_BOARD_IDS 2020-05-20 09:10:15 -07:00
Dale Weber
d3cc2a29e0 Fixed code formatting by running black on detect.py, try #4. Oh, my! 2020-05-19 05:56:57 -07:00
Dale Weber
0de104ca7a Fixed code formatting, try #3. Oh, my! 2020-05-19 05:51:22 -07:00
Dale Weber
a5eb09d0ec Fixed code formatting, try #2 2020-05-19 05:46:38 -07:00
Dale Weber
d0d36d1683 Fixed code formatting 2020-05-19 05:41:15 -07:00
Dale Weber
710f368a72 Added board detection for UDOO Bolt using check_board_asset_value() and added it to detect.py 2020-05-19 05:32:12 -07:00
Melissa LeBlanc-Williams
a7da497054
Merge pull request #80 from geekguy-wy/add_udoo_bolt_detect
Add platform detection for the UDOO Bolt
2020-05-18 11:48:15 -07:00
=Dale Weber
8285f64c2a The chip (Ryzen V1605B) and board *UDOO_BOLT) are now correctly detected by PlatformDetect. 2020-05-17 02:47:46 -07:00
=Dale Weber
7de55e27b6 Fixed statement has no effect for PyLint 2020-05-16 11:51:55 -07:00
=Dale Weber
ca21ef9e02 Fixed the way I am calling get_board_asset_tag() 2020-05-16 11:47:45 -07:00
=Dale Weber
e9f6442b06 Fixed the last one-off space I missed last time. 2020-05-15 21:26:46 -07:00
=Dale Weber
7d1f6696ca Fixed a one-off space and added two ':' in comparisons 2020-05-15 21:23:04 -07:00
=Dale Weber
727cb3d3a0 First try at detecting an UDOO Bolt. There will probably be more. 2020-05-15 21:07:02 -07:00
Melissa LeBlanc-Williams
0415b1c6c2
Merge pull request #79 from makermelissa/master
Huge GreatFET detection speedup
2020-05-08 15:34:17 -07:00
Melissa LeBlanc-Williams
133364413e Black formatted 2020-05-08 14:57:19 -07:00
Melissa LeBlanc-Williams
dae542af67 Huge GreatFET detection speedup 2020-05-08 14:52:12 -07:00
Melissa LeBlanc-Williams
66925a5cb3
Merge pull request #78 from bawilless/AvnetIIoTGW
Changes to support detecting the Avnet IIoT Gateway
2020-05-08 09:35:57 -07:00
Brian
04f33db7a1 Detect board as 40pin Pi, fix file formatting 2020-05-08 12:31:54 -04:00
Brian
314d23ebb2 Changes to support detecting the Avnet IIoT Gateway 2020-05-08 11:55:27 -04:00
Melissa LeBlanc-Williams
309a7d28e1
Merge pull request #77 from makermelissa/master
Added GreatFET One Detection
2020-05-06 14:07:26 -07:00
Melissa LeBlanc-Williams
8421507d9c Merge branch 'master' of https://github.com/adafruit/Adafruit_Python_PlatformDetect 2020-05-06 12:50:06 -07:00
Melissa LeBlanc-Williams
22d2dfe0c8 Black linted 2020-05-06 12:49:47 -07:00
Melissa LeBlanc-Williams
b26276d542 Added GreatFET One Detection 2020-05-06 12:44:38 -07:00
Limor "Ladyada" Fried
ad7120ed5a
Merge pull request #76 from pdp7/patch-2
add ID for BeagleBone Black revision B
2020-05-05 12:24:45 -04:00
Drew Fustini
5085109c61
add ID for BeagleBone Black revision B
A335BNLT000B represents a BeagleBone Black revision B.

This change resolves adafruit/Adafruit_Blinka#283
2020-05-05 18:23:02 +02:00
Melissa LeBlanc-Williams
38934503f6
Merge pull request #75 from trainman419/master
Add Orange Pi 2 support
2020-05-04 09:48:08 -07:00
trainman419
48387d0fe2 Add to _ORANGE_PI_IDS too. 2020-05-03 04:46:40 +00:00
trainman419
7e402d046d Add Orange Pi 2 support 2020-05-03 02:15:20 +00:00
Melissa LeBlanc-Williams
9ff0213d45
Merge pull request #74 from makermelissa/master
Added Rock Pi S
2020-04-23 21:40:51 -07:00
Melissa LeBlanc-Williams
d09c0c6a9a Disable didn't take the first time 2020-04-23 16:34:53 -07:00
Melissa LeBlanc-Williams
c94541c94c Pylint Disabling too many methods 2020-04-23 16:32:22 -07:00
Melissa LeBlanc-Williams
f9ca2bd0da Added Rock Pi S 2020-04-23 16:29:38 -07:00
Melissa LeBlanc-Williams
47c90a15b4
Merge pull request #73 from makermelissa/master
Fix badges in README
2020-04-21 09:42:30 -07:00
Melissa LeBlanc-Williams
879426c430 Merge branch 'master' of https://github.com/adafruit/Adafruit_Python_PlatformDetect 2020-04-21 08:42:37 -07:00
Melissa LeBlanc-Williams
89efa71d71 Fix badges in README 2020-04-21 08:41:33 -07:00
Melissa LeBlanc-Williams
7292ece9b1
Merge pull request #72 from makermelissa/master
Updated README to modern version
2020-04-21 08:27:28 -07:00
Melissa LeBlanc-Williams
4166e0ab5e Fixed spacing and removed todos 2020-04-20 20:21:24 -07:00
Melissa LeBlanc-Williams
7fc5763375 Updated README to modern version 2020-04-20 20:16:02 -07:00
Melissa LeBlanc-Williams
52233a4a1c
Merge pull request #71 from makermelissa/master
Black formatted, Pylinted, Documentified, and Github Actionified
2020-04-20 20:11:53 -07:00
Melissa LeBlanc-Williams
29b99984b4 Fixing another readme link 2020-04-20 17:26:06 -07:00
Melissa LeBlanc-Williams
4a3097409e Fixing readme link 2020-04-20 17:24:34 -07:00
Melissa LeBlanc-Williams
02003debe9 Updated RTD conf 2020-04-20 17:21:57 -07:00
Melissa LeBlanc-Williams
a667d8b8e2 Documentification 2020-04-20 17:18:03 -07:00
Melissa LeBlanc-Williams
ea2c69b36b Get black and pylint to stop fighting 2020-04-20 15:08:16 -07:00
Melissa LeBlanc-Williams
4deb3083b8 Black reformatted 2020-04-20 15:03:52 -07:00
Melissa LeBlanc-Williams
209bc8ecef Fixed gitignore and added build 2020-04-20 14:57:38 -07:00
Melissa LeBlanc-Williams
7e2bcb4e4e Removed Travis 2020-04-20 14:53:32 -07:00
Melissa LeBlanc-Williams
df66981de3 Black formatted, Pylinted, and Github Actionified 2020-04-20 14:52:25 -07:00
Melissa LeBlanc-Williams
3b3ff5a545 Merge branch 'master' of https://github.com/adafruit/Adafruit_Python_PlatformDetect 2020-04-20 14:13:57 -07:00
Melissa LeBlanc-Williams
7143038366
Merge pull request #70 from hhk7734/odroid-c4
ODROID-C4: modify detection through 'compatible'
2020-04-20 08:29:50 -07:00
Hyeonki Hong
db19a142d7 ODROID-C4: modify detection through 'compatible' 2020-04-20 13:39:09 +09:00
Melissa LeBlanc-Williams
43f3fc6fd8
Merge pull request #69 from johalun/master
Add Clockwork Pi board
2020-04-14 08:39:55 -07:00
cpi
ee623a3eaf Add Clockwork Pi board 2020-04-14 08:29:56 -07:00
Melissa LeBlanc-Williams
26ae7c2e5a Merge branch 'master' of https://github.com/adafruit/Adafruit_Python_PlatformDetect 2020-03-23 10:02:14 -07:00
Melissa LeBlanc-Williams
34697fef8b
Merge pull request #68 from hhk7734/odroid-c4
Add support for Hardkernel Odroid C4
2020-03-23 08:42:43 -07:00
Hyeonki Hong
69e6bd7770 Add support for Hardkernel Odroid C4 2020-03-24 00:36:23 +09:00
Melissa LeBlanc-Williams
2dbcc84fc2 Merge branch 'master' of https://github.com/adafruit/Adafruit_Python_PlatformDetect 2020-03-12 11:34:38 -07:00
Melissa LeBlanc-Williams
110a54c727
Merge pull request #65 from yeyeto2788/master
Pinephone detection on Alpine linux
2020-03-03 08:40:02 -08:00
Melissa LeBlanc-Williams
bfc2691deb
Merge pull request #67 from pmundt/xilinx-pynq
Add support for Xilinx PYNQ dev boards (Z1 and Z2)
2020-03-03 08:39:23 -08:00
Paul Mundt
ed5313c1ea Fix up pylint method could be a function (no-self-use) warning
The introduction of the _pynq_id() method triggered this warning
from pylint, annotate accordingly.
2020-03-03 11:18:09 +01:00
Paul Mundt
3bc3d1e61a Add support for Xilinx PYNQ dev boards (Z1 and Z2)
The PYNQ boards identify themselves as a generic Xilinx 7000
chip in the device tree, and, somewhat annoyingly, do not
include board-level information in the board name or list of
compats. Specific board information can, however, be queried
directly from a separate device-tree file.
2020-03-02 12:40:27 +00:00
Juan Biondi
bcb836c22f
Merge pull request #2 from yeyeto2788/pinephone
Pinephone
2020-02-28 22:57:49 +01:00
yeyeto2788
7a06bc81ae Add recognition of pinephone using alpine linux 2020-02-28 22:56:53 +01:00
Melissa LeBlanc-Williams
c93449d7e6
Merge pull request #64 from swarren/jetson-nx
Add support for NVIDIA Jetson NX
2020-02-24 11:55:29 -08:00
Stephen Warren
f8069768c2 Add support for NVIDIA Jetson NX 2020-02-24 12:37:52 -07:00
Stephen Warren
d3b716a97b NVIDIA Jetson: Detect boards using compatible value
Use the device tree compatible value to detect which Jetson board the
code is running on, rather than the DT model value. The compatible value
should be more stable. This algorithm exactly matches how Jetson.GPIO
detects boards, so allows easier porting of new board support between
the two code-bases.
2020-02-19 15:19:28 -07:00
Stephen Warren
b8ed4d2cca NVIDIA Jetson: Detect chip directly
Modify _linux_id() to check the compatible value for the chip ID
directly, rather than determining the board model and then implicitly
determining the chip based on that. This removes the need to update this
logic whenever a new Jetson board is released.
2020-02-18 12:49:14 -07:00
Melissa LeBlanc-Williams
a174e7c4e1
Merge pull request #62 from mruz/master
Get revision from device-tree if None
2020-02-11 11:44:01 -08:00
Melissa LeBlanc-Williams
b6cf7d039f Merge branch 'master' of https://github.com/mruz/Adafruit_Python_PlatformDetect 2020-02-11 11:39:11 -08:00
mruz
797bbbe8b5 Get revision from device-tree, fix #61 2020-01-25 14:59:41 +01:00
Melissa LeBlanc-Williams
0eb6058aa5
Merge pull request #58 from mruz/master
Add openSUSE support
2020-01-22 09:36:17 -08:00
Melissa LeBlanc-Williams
6e6d6f6133
Merge pull request #60 from pdp7/master
add condition to detect BeagleBone Green
2020-01-22 09:34:26 -08:00
Melissa LeBlanc-Williams
a6be564816
Merge pull request #59 from yeyeto2788/module_refactor
Fix dependencies on setup.py so it add the constants.
2020-01-22 08:17:28 -08:00
Drew Fustini
a6a280af06 add test to detect BeagleBone Green #57 2020-01-22 15:22:37 +00:00
mruz
ee1ce0f5c6 Hardware to upper 2020-01-22 15:18:14 +01:00
Drew Fustini
54468b8d8d
Fix reference to BeagleBone Green model 2020-01-22 11:54:28 +00:00
Drew Fustini
56f54311ce add condition to detect BeagleBone Green #57
Special condition is needed to detect BeagleBone Green rev. 1A

Refer to GitHub issue #57 in this repo for more info
2020-01-22 11:13:54 +00:00
yeyeto2788
05c4593107 Fix dependencies on setup.py so it add the constants. 2020-01-22 11:28:21 +01:00
mruz
dd6d4f9158 Detect rpi4b on openSUSE 2020-01-22 00:33:11 +01:00
mruz
77824a6f77 Add rpi4 bcm2711 chip 2020-01-22 00:30:38 +01:00
Melissa LeBlanc-Williams
d8065529d7
Merge pull request #56 from yeyeto2788/module_refactor
Module refactor
2020-01-21 13:53:59 -08:00
yeyeto2788
ac5513d910 Fix failing build. 2020-01-20 20:04:50 +01:00
yeyeto2788
98a65eb537 Refactor library in order to separate components. 2020-01-20 15:44:24 +01:00
yeyeto2788
d5bf51725f Merge branch 'orangepi' of https://github.com/yeyeto2788/Adafruit_Python_PlatformDetect into orangepi 2020-01-20 15:27:24 +01:00
Limor "Ladyada" Fried
c5e07988b3
Merge pull request #54 from yeyeto2788/orangepi
Addition of Orange Pi Plus 2E
2020-01-17 14:09:32 -05:00
yeyeto2788
00d3aa9076 Fix minor issue on Orange Board ids and add the Orange Pi Plus 2E 2020-01-17 20:04:12 +01:00
Melissa LeBlanc-Williams
73551a1072
Merge pull request #53 from yeyeto2788/orangepi
Add Orange Pi boards (One, Lite, PC +)
2020-01-16 08:39:24 -08:00
yeyeto2788
8e069fd800 Fix lint issues. 2020-01-15 21:20:11 +00:00
yeyeto2788
072f0738cd Fix lint issues 2020-01-15 22:18:17 +01:00
yeyeto2788
446acd49e0 Fix naming of orange pi one. 2020-01-15 21:15:34 +00:00
yeyeto2788
bc6ee45689 Fix name of board id for Orange Pi One 2020-01-15 22:04:42 +01:00
yeyeto2788
bf73044c2f Add Orange Pi boards (One, Lite, PC +) 2020-01-15 21:40:12 +01:00
Melissa LeBlanc-Williams
18c96826af
Merge pull request #52 from yeyeto2788/master
Initial addition for Pine64 devices
2020-01-09 09:13:04 -08:00
yeyeto2788
869b1519be Add detection for Pine64 2020-01-09 17:48:48 +01:00
yeyeto2788
a867b45e08 Fix pylint issue regarding too many statements on the chip.Chip._linux_id method 2020-01-08 08:18:36 +01:00
yeyeto2788
87b7a2ed22 Merge branch 'master' of https://github.com/adafruit/Adafruit_Python_PlatformDetect
# Conflicts:
#	adafruit_platformdetect/chip.py
2020-01-08 08:07:27 +01:00
yeyeto2788
ad3a44f6f7 Rename chip to A64 as it is supposed to be instead of PINE64 2020-01-08 07:57:46 +01:00
Melissa LeBlanc-Williams
eab68f07dd
Merge pull request #40 from sommersoft/ubuntu-disco
RFC: Attempt To Recognize Raspberry Pi Running Non-Raspbian OS
2020-01-07 16:11:00 -08:00
Juan Biondi
cbdf40330e Fix Pinebook detection based on Armbian distro 2020-01-07 20:15:06 +00:00
Juan Biondi
15d3b72a9a
Merge branch 'master' into master 2020-01-07 12:26:59 +01:00
yeyeto2788
041d29dfa9 Fix docstring on property any_pine64_board 2020-01-07 12:21:31 +01:00
yeyeto2788
57c0ef62f5 Add detection of the Pine64 in the detect.py 2020-01-07 12:18:45 +01:00
yeyeto2788
2ce29ed8b6 First attempt to add Pine64 board and devices 2020-01-07 12:16:25 +01:00
yeyeto2788
eed3b9f07c Fix error of PR done by mistake 2020-01-07 11:43:40 +01:00
F59JBP0
9ae4f6ae29 Fix error for issue #50 2020-01-07 11:36:03 +01:00
sommersoft
d943f95646 re-add stuff after more merge conflict fixes 2020-01-03 17:52:01 -06:00
sommersoft
82487c066f Merge branch 'master' of https://github.com/adafruit/Adafruit_Python_PlatformDetect into ubuntu-disco-deconflict 2020-01-03 17:50:20 -06:00
Melissa LeBlanc-Williams
a2c9e3e875
Merge pull request #48 from makermelissa/master
Checking if cpu_model is not None
2020-01-03 12:32:47 -08:00
Melissa LeBlanc-Williams
57e3c32b4d Checking if cpu_model is not None 2020-01-03 12:14:54 -08:00
Melissa LeBlanc-Williams
bf42d0898b
Merge pull request #47 from yeyeto2788/master
Addition of onion omega board running OpenWRT
2020-01-02 16:31:47 -08:00
Melissa LeBlanc-Williams
7711eca97c Added Onion Omega2 detection 2020-01-02 16:29:26 -08:00
yeyeto2788
1819e608a1 Fix error on board.py replacing ONION by MIPS24KC 2019-12-31 19:03:25 +01:00
yeyeto2788
8286f1172e Change chip id for onion omega on detection. 2019-12-31 19:00:03 +01:00
yeyeto2788
a35117b822 Change detection of Onion Omega boards based on its 'cpu model' 2019-12-31 14:30:50 +01:00
sommersoft
e135ce4404 Merge branch 'ubuntu-disco' of https://github.com/sommersoft/Adafruit_Python_PlatformDetect into ubuntu-disco 2019-12-30 17:34:28 -06:00
sommersoft
633a4a92c9 re-add chip.py::BCM_RANGE after merge conflict 2019-12-30 17:32:25 -06:00
sommersoft
f54d7e7c09 Merge branch 'master' of https://github.com/adafruit/Adafruit_Python_PlatformDetect into ubuntu-disco 2019-12-30 17:30:58 -06:00
yeyeto2788
7001c3b382 Addition of onion omega board running OpenWRT 2019-12-23 21:58:27 +01:00
Melissa LeBlanc-Williams
b9c0541be7
Merge pull request #44 from binhollc/master
Remove circular dependency with Blinka. Connection will be checked in…
2019-12-02 18:55:57 -08:00
Francis Guevarra
5f540e9ac7 Remove circular dependency with Blinka. Connection will be checked in blinka code already. 2019-12-02 18:53:10 -08:00
Melissa LeBlanc-Williams
93c4d5c23b
Merge pull request #43 from binhollc/master
Binho Nova integration
2019-12-02 17:41:31 -08:00
Francis Guevarra
6f7af39447 Rename board to BINHO_NOVA 2019-12-02 17:39:33 -08:00
Francis Guevarra
ea802ab728 Fix Comparison expr is None check from pylint 2019-12-02 16:43:36 -08:00
Francis Guevarra
0a1c8ff2c7 Clean up and remove unused code 2019-12-02 15:52:54 -08:00
Francis Guevarra
6cde03a0da Merge branch 'master' of https://github.com/binhollc/Adafruit_Python_PlatformDetect 2019-12-02 15:46:45 -08:00
Francis Guevarra
50840337b7 Use binho connection singleton 2019-12-02 15:42:32 -08:00
Francis Guevarra
9c684461c2 set _binho only if BLINKA_NOVA env variable exists 2019-12-02 15:25:24 -08:00
Francis Guevarra
bf78cc6777 change board id to NOVA and fix issue with autodetect being called multiple times after there's already a binho object 2019-12-02 15:23:29 -08:00
Francis Guevarra
86c99316dc Use BLINKA_NOVA as env variable instead 2019-12-02 15:18:49 -08:00
Jonathan Georgino
0d67ae6fe4 Added support for Binho Nova Multi-Protocol USB Host Adapter 2019-12-02 15:15:41 -08:00
Melissa LeBlanc-Williams
2eba410afb
Merge pull request #42 from makermelissa/master
Added more Raspberry Pi codes
2019-11-25 10:54:15 -08:00
Melissa LeBlanc-Williams
f8eb72b91d Added more Raspberry Pi codes 2019-11-25 10:20:16 -08:00
Francis Guevarra
d09621e521 Use binho connection singleton 2019-11-23 14:37:07 -08:00
Limor "Ladyada" Fried
2292125129
Merge pull request #41 from caternuson/mcp2221
Add MCP2221
2019-11-21 14:44:23 -05:00
caternuson
e000760424 update detect script 2019-11-21 11:37:06 -08:00
caternuson
364069ac77 lint 2019-11-21 10:46:16 -08:00
caternuson
b79c2d5794 add MCP2221 2019-11-20 21:01:03 -08:00
Francis Guevarra
95e159f32d set _binho only if BLINKA_NOVA env variable exists 2019-11-19 18:04:27 -08:00
Francis Guevarra
903fc7851d change board id to NOVA and fix issue with autodetect being called multiple times after there's already a binho object 2019-11-17 22:27:20 -08:00
Francis Guevarra
2f3ffabd9f Use BLINKA_NOVA as env variable instead 2019-11-16 21:04:49 -08:00
Francis G
e6925ab257 Have Binho use its own try block 2019-11-16 20:49:25 -08:00
Jonathan Georgino
9690546c18 Added support for Binho Nova Multi-Protocol USB Host Adapter 2019-11-16 14:03:25 -08:00
sommersoft
8c64f6fc31
fix late-night keyword mangle 2019-10-22 08:51:58 -05:00
sommersoft
e310984783 chip.py: accomodate either the str or list version of 'hardware' result 2019-10-21 22:55:54 -05:00
sommersoft
4edd8858ae one last style edit 2019-10-20 14:29:23 -05:00
sommersoft
c3e9a58f9e attempt to detect the 'board_id' on RPi when running a non-Raspbian OS 2019-10-20 11:20:36 -05:00
sommersoft
b0f75e8062 widen search for chip id; captures RPi with non-Raspbian OS 2019-10-19 23:33:15 -05:00
sommersoft
76ff837fb1 style edit: remove variation in use of double & single quotes 2019-10-19 23:31:54 -05:00
Limor "Ladyada" Fried
ac83c61fa2
Merge pull request #39 from caternuson/pyftdi
Change to pyftdi
2019-09-17 21:41:04 -04:00
caternuson
a88a9158ff lint 2019-09-17 18:31:40 -07:00
caternuson
65ab96440c change to pyftdi lib 2019-09-17 18:22:38 -07:00
Melissa LeBlanc-Williams
8cbc6169c9
Merge pull request #38 from hansoostendorp/orangepizero
Update board.py for Orange Pi Zero
2019-09-06 08:16:59 -07:00
Hans Oostendorp
bc6d700cbb Update board.py for Orange Pi Zero 2019-09-05 16:39:12 +02:00
Melissa LeBlanc-Williams
aacfd20d9a
Merge pull request #37 from swarren/model-jetson-agx
Allow model name of 'Jetson-AGX'
2019-08-16 12:23:50 -07:00
Stephen Warren
8508126634 Allow model name of 'Jetson-AGX'
For some reason, my software build has a device tree model value of
Jetson-AGX rather than Jetson-Xavier. Enhance the board detection code
to cater for this.
2019-08-14 17:42:54 -06:00
Melissa LeBlanc-Williams
ae239bd9c3
Merge pull request #36 from bibekbasu/patch-1
Update board.py for nvidia Jetson boards
2019-08-12 09:03:19 -07:00
bibekbasu
2051282bbd
Update board.py for nvidia Jetson boards
Recently, Model names are updated for Jetson Nvidia boards.
This change takes care of model name check of Jetson TX1 nano and Xavier. Change also adds support for
Quill derivatives like storm and lightning.
2019-08-12 15:59:12 +05:30
Melissa LeBlanc-Williams
32fcd6cf30
Merge pull request #35 from paulcrawford/master
Adding Odroid N2
2019-08-06 15:23:24 -07:00
Melissa LeBlanc-Williams
a3ab927aac Hyphen to underscore 2019-08-06 15:10:32 -07:00
paulcrawford
4309080c15
Update chip.py 2019-08-06 18:03:09 -04:00
Melissa LeBlanc-Williams
89a3bbed27 PR Changes made 2019-08-06 14:23:59 -07:00
Melissa LeBlanc-Williams
6e9cd7b9f9
Merge pull request #34 from adriendod/patch-1
Fixing Jetson Nano detection
2019-08-05 08:42:50 -07:00
paulcrawford
c8d1f8530f
Update board.py 2019-08-05 10:49:39 -04:00
paulcrawford
dcab131963
Update board.py 2019-08-04 17:03:03 -04:00
paulcrawford
eb19926ce2
Update board.py 2019-08-04 16:59:10 -04:00
paulcrawford
88265e07b3
Update chip.py 2019-08-04 16:52:20 -04:00
paulcrawford
b3192b9789
Update board.py 2019-08-04 16:40:20 -04:00
paulcrawford
b98da99c3b
Update board.py 2019-08-04 13:39:13 -04:00
paulcrawford
990fe060da
Update board.py 2019-08-04 13:17:12 -04:00
paulcrawford
d2bd76fc71
Update board.py 2019-08-04 13:11:53 -04:00
Adrien Dodinet
ded19d74eb
Fixing Jetson Nano detection
Hello,

Seems like this is not working properly anymore in board.py (_tegra_id): 

`elif 'nano' in board_value:
            board = JETSON_NANO`

In /proc/device-tree/model of my jetson nano, I see:
NVIDIA Jetson **Nano** Developer Kit

I checked a previous install on another sd card and the file read : 
jetson **nano**

I think the function should now look for nano or Nano.

Thanks
2019-08-04 11:46:17 +02:00
paulcrawford
72c4a9b0ea
Update board.py 2019-08-03 11:25:41 -04:00
paulcrawford
fe2e986222
Update chip.py 2019-08-03 11:21:55 -04:00
paulcrawford
f30e22f1ff
Update chip.py 2019-08-03 09:43:38 -04:00
paulcrawford
ff3de325e9
Update board.py 2019-08-02 17:44:13 -04:00
paulcrawford
1d7812b29b
Update chip.py 2019-08-02 17:37:56 -04:00
paulcrawford
0109f0acd9
Update board.py 2019-08-02 17:28:34 -04:00
Melissa LeBlanc-Williams
29b9383a41
Merge pull request #33 from makermelissa/master
Added missing CM3 Rev code
2019-07-19 14:15:36 -07:00
Melissa LeBlanc-Williams
38e039093a Added missing CM3 Rev code 2019-07-19 14:11:16 -07:00
Limor "Ladyada" Fried
af15c576a3
Merge pull request #32 from makermelissa/master
Added Raspberry Pi CM3+ and Compute Module detection
2019-07-18 21:52:38 -04:00
Melissa LeBlanc-Williams
8a93e0c672 linting 2019-07-18 15:05:38 -07:00
Melissa LeBlanc-Williams
f891313e7d Added Raspberry Pi CM3+ and Compute Module detection 2019-07-18 14:59:31 -07:00
Melissa LeBlanc-Williams
eeb4be3c84
Merge pull request #31 from fede2cr/master
Initial support for Sifive's HiFive Unleashed
2019-07-09 19:14:04 -07:00
Alvaro Figueroa
dad84002c1 Adding test case for SiFive Unleashed 2019-07-09 20:12:06 -06:00
Alvaro Figueroa
b2385d9af2 Tabs->Space 2019-07-09 19:53:55 -06:00
Alvaro Figueroa
341297b86e Renaming board to SIFIVE_UNLEASHED, returning None 2019-07-09 19:51:14 -06:00
Alvaro Figueroa
fb80820bb2 Initial support for Sifive's HiFive Unleashed 2019-07-09 19:18:12 -06:00
Limor "Ladyada" Fried
9278f16905
Merge pull request #30 from makermelissa/master
Added RasPi 4 1GB and 2GB models
2019-06-27 15:31:37 -04:00
Melissa LeBlanc-Williams
67f11382af Added RasPi 4 1GB and 2GB models 2019-06-27 12:00:30 -07:00
Melissa LeBlanc-Williams
eca53dd572
Merge pull request #28 from ladyada/master
add raspi 4b
2019-06-24 16:45:31 -07:00
ladyada
87e659aef5 add raspi 4b 2019-06-24 19:43:41 -04:00
Limor "Ladyada" Fried
9e224f3dc5
Merge pull request #27 from makermelissa/master
Added 96boards under any_embedded_linux property
2019-06-21 21:51:18 -04:00
Melissa LeBlanc-Williams
7a75d05891 Merge branch 'master' of https://github.com/adafruit/Adafruit_Python_PlatformDetect 2019-06-20 12:09:00 -07:00
Melissa LeBlanc-Williams
0a4e180ca4 Added 96boards under any_embedded_linux property 2019-06-20 12:08:54 -07:00
Melissa LeBlanc-Williams
8a0c6ffefb
Merge pull request #26 from makermelissa/master
Updated 96 Boards detection to be more specific
2019-06-20 10:25:50 -07:00
Melissa LeBlanc-Williams
47aa164ec8 Linting 2019-06-20 10:13:24 -07:00
Melissa LeBlanc-Williams
38a8920f88 Merge branch 'master' of https://github.com/adafruit/Adafruit_Python_PlatformDetect 2019-06-20 10:10:21 -07:00
Melissa LeBlanc-Williams
15a7d4b99b Updated 96 Boards detection to be more specific 2019-06-20 10:10:06 -07:00
Melissa LeBlanc-Williams
9b4cad9b81
Merge pull request #25 from makermelissa/master
Fixed File Not Found error bug from 96Boards merge
2019-06-15 20:41:47 -07:00
Melissa LeBlanc-Williams
38e74ffbf0 Fixed File Not Found error bug from 96Boards merge 2019-06-15 20:33:40 -07:00
Melissa LeBlanc-Williams
e3cacfb917 Linted for Travis 2019-06-14 14:39:21 -07:00
Melissa LeBlanc-Williams
56bcd0374d Updated with newer boards 2019-06-13 16:01:30 -07:00
Limor "Ladyada" Fried
71805aedb6
Merge pull request #24 from makermelissa/master
Improved Odroid C2 Detection
2019-06-05 13:26:18 -04:00
Melissa LeBlanc-Williams
0d5dd9eb49 Improved Odroid C2 Detection 2019-06-05 09:32:15 -07:00
Limor "Ladyada" Fried
72bd91fcca
Merge pull request #23 from kouliss/platformdetect-r1
Add OrangePI R1 detection
2019-05-19 16:06:59 -04:00
Martin Volek
ffe2b2875c Add OrangePI R1 detetion 2019-05-19 21:06:13 +02:00
Martin Volek
4caf8bb893 Add OrangePI R1 detetion 2019-05-19 20:45:33 +02:00
Martin Volek
2054c4cca9 Add OrangePI R1 detetion 2019-05-17 07:17:32 +02:00
Martin Volek
e77bf9dd99 Add OrangePI R1 detetion 2019-05-16 23:58:43 +02:00
Limor "Ladyada" Fried
3bb9015b06
Update README.rst 2019-05-12 04:12:19 -04:00
Limor "Ladyada" Fried
04a9c7ce00
Merge pull request #22 from ladyada/master
forgot to add Coral as an embedded linux board type
2019-05-12 04:02:24 -04:00
ladyada
61816acdde forgot to add it as an embedded linux board type 2019-05-12 01:09:29 -04:00
Limor "Ladyada" Fried
a107fe7d94
Merge pull request #21 from ladyada/master
Google Coral Dev board
2019-05-11 23:05:14 -04:00
ladyada
56fdb9ed21 lint 2019-05-11 23:03:25 -04:00
ladyada
4f0e22eead add coral edge tpu dev board code name "Phanbell" 2019-05-11 22:57:02 -04:00
ladyada
b743d140c5 detect coral dev board chip: https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/sabre-development-system/evaluation-kit-for-the-i.mx-8m-applications-processor:MCIMX8M-EVK 2019-05-11 22:49:53 -04:00
Limor "Ladyada" Fried
cddd4d47e5
Merge pull request #19 from NVIDIA-AI-IOT-private/jetson
added jetson nano board
2019-03-25 19:54:03 -04:00
Andy
1c326b1bd0 added jetson nano 2019-03-25 14:58:00 -07:00
Limor "Ladyada" Fried
2c929e630e
Merge pull request #18 from NVIDIA-AI-IOT-private/jetson
Updated hardware naming to match the Adafruit_Blinka PR
2019-03-13 14:49:32 -04:00
Andy
8855a2b7de Merge branch 'jetson' of https://github.com/NVIDIA-AI-IOT-private/Adafruit_Python_PlatformDetect into jetson 2019-03-13 11:47:41 -07:00
Andy
6e7f17a059 Updated hardware naming 2019-03-13 11:43:12 -07:00
Andy
f5e99409d9 Updated hardware naming 2019-03-13 11:20:28 -07:00
Limor "Ladyada" Fried
c543cd5dc3
Merge pull request #17 from ladyada/master
fix broken travis runs due to blinka not installing on the virtual linux
2019-03-12 00:52:16 -04:00
ladyada
fb561271bf fix broken travis runs due to blinka not installing on the virtual linux 2019-03-12 00:49:26 -04:00
Limor "Ladyada" Fried
49ccd2a069
Merge pull request #14 from NVIDIA-AI-IOT-private/jetson
added jetson chip and board detect
2019-03-11 16:39:40 -04:00
Andy
3d682f26d9 fixup pylint 2019-03-11 13:29:30 -07:00
Limor "Ladyada" Fried
c5e00398e1
Merge pull request #16 from ladyada/master
fix raspi codes
2019-03-09 12:59:54 -05:00
ladyada
0c65caa37b fix raspi codes 2019-03-09 12:56:36 -05:00
Limor "Ladyada" Fried
a541076e67
Merge pull request #15 from Weizilla/missing-rpi-zero-comma
Add missing comma in Raspberry PI Zero rev code list
2019-03-08 21:43:34 -05:00
Wei Yang
3323551a96 Add missing comma in Raspberry PI Zero rev code list 2019-03-08 20:25:17 -06:00
John Welsh
fcebb19bf2 added jetson chip and board detect 2019-03-08 11:27:33 -08:00
Limor "Ladyada" Fried
10f588d0f9
Merge pull request #13 from Groboards/master
Add support for Giant Board and other SAMA5 based boards
2019-01-07 14:09:15 -05:00
Christopher Alessandro
5a79a9523c Fix long line 2019-01-07 11:32:31 -07:00
Christopher Alessandro
b44b78868f Fix formating 2019-01-07 11:25:41 -07:00
Christopher Alessandro
0b4ab326c2 Added docstring 2019-01-07 11:23:15 -07:00
Christopher Alessandro
536d3da897 Fix formating and indentation errors 2019-01-07 11:18:07 -07:00
Christopher Alessandro
ce37e43e03 Add Giant Board to any_embedded_linux 2019-01-07 10:20:17 -07:00
Christopher Alessandro
213e2c376b Fix Spacing/formating 2019-01-07 10:07:10 -07:00
Christopher Alessandro
603a60529d Fix spacing/formating 2019-01-07 10:03:40 -07:00
Christopher Alessandro
5a298fbc78 Fix indent 2019-01-07 09:57:29 -07:00
Christopher Alessandro
d209a3a544 Add support to detect SAMA5 chips and the Giant Board 2019-01-07 09:42:54 -07:00
Limor "Ladyada" Fried
ea528db48c
Merge pull request #12 from ladyada/master
add warranty bit in spot 25
2018-12-30 12:57:17 -08:00
ladyada
c0dc24bbea one more 2018-12-30 15:51:44 -05:00
ladyada
99253e85f4 add warranty bit in spot 25 2018-12-30 14:41:24 -05:00
36 changed files with 4490 additions and 572 deletions

18
.github/release-drafter.yml vendored Normal file
View file

@ -0,0 +1,18 @@
# SPDX-FileCopyrightText: 2023 Melissa LeBlanc-Williams, written for Adafruit Industries
#
# SPDX-License-Identifier: MIT
categories:
- title: "New Boards"
collapse-after: 1
labels:
- "New Board"
change-template: "- $TITLE #$NUMBER by @$AUTHOR"
template: |
## What's Changed
$CHANGES
To use in CPython, `pip3 install Adafruit-PlatformDetect`.
Read the [docs](https://circuitpython.readthedocs.io/projects/platformdetect/en/latest/) for info on how to use it.

64
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,64 @@
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
#
# SPDX-License-Identifier: MIT
name: Build CI
on: [pull_request, push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Translate Repo Name For Build Tools filename_prefix
id: repo-name
run: |
echo ::set-output name=repo-name::$(
echo ${{ github.repository }} |
awk -F '\/' '{ print tolower($2) }' |
tr '_' '-'
)
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Versions
run: |
python3 --version
- name: Checkout Current Repo
uses: actions/checkout@v3
with:
submodules: true
- name: Checkout tools repo
uses: actions/checkout@v3
with:
repository: adafruit/actions-ci-circuitpython-libs
path: actions-ci
- name: Install dependencies
# (e.g. - apt-get: gettext, etc; pip: circuitpython-build-tools, requirements.txt; etc.)
run: |
source actions-ci/install.sh
- name: Pip install Sphinx, pre-commit
run: |
pip install --force-reinstall Sphinx sphinx-rtd-theme pre-commit
- name: Library version
run: git describe --dirty --always --tags
- name: Setup problem matchers
uses: adafruit/circuitpython-action-library-ci-problem-matchers@v1
- name: Pre-commit hooks
run: |
pre-commit run --all-files
- name: Build docs
working-directory: docs
run: sphinx-build -E -W -b html . _build/html
- name: Check For pyproject.toml
id: need-pypi
run: |
echo pyproject-toml=$( find . -wholename './pyproject.toml' ) >> $GITHUB_OUTPUT
- name: Build Python package
if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
run: |
pip install --upgrade build setuptools wheel twine readme_renderer testresources
find -type f -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) -exec sed -i -e "s/0.0.0+auto.0/1.2.3/" {} +
python -m build
twine check dist/*

25
.github/workflows/release-drafter.yml vendored Normal file
View file

@ -0,0 +1,25 @@
# SPDX-FileCopyrightText: 2023 Melissa LeBlanc-Williams, written for Adafruit Industries
#
# SPDX-License-Identifier: MIT
name: Release Drafter
on:
push:
branches:
- main
permissions:
contents: read
jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
pull-requests: read
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

38
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,38 @@
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
#
# SPDX-License-Identifier: MIT
name: Release Actions
on:
release:
types: [published]
jobs:
upload-pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check For pyproject.toml
id: need-pypi
run: |
echo pyproject-toml=$( find . -wholename './pyproject.toml' ) >> $GITHUB_OUTPUT
- name: Set up Python
if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
run: |
python -m pip install --upgrade pip
pip install --upgrade build twine
- name: Build and publish
if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
env:
TWINE_USERNAME: ${{ secrets.pypi_username }}
TWINE_PASSWORD: ${{ secrets.pypi_password }}
run: |
find -type f -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) -exec sed -i -e "s/0.0.0+auto.0/${{github.event.release.tag_name}}/" {} +
python -m build
twine upload dist/*

8
.gitignore vendored
View file

@ -1,12 +1,16 @@
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
#
# SPDX-License-Identifier: Unlicense
*.mpy
.idea
__pycache__
_build
build
*.pyc
.env
build*
bundles
*.DS_Store
.eggs
dist
**/*.egg-info
**/*.egg-info

42
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,42 @@
# SPDX-FileCopyrightText: 2020 Adafruit
#
# SPDX-License-Identifier: Unlicense
repos:
- repo: https://github.com/python/black
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/fsfe/reuse-tool
rev: v1.1.2
hooks:
- id: reuse
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pycqa/pylint
rev: v2.17.4
hooks:
- id: pylint
name: pylint (library code)
types: [python]
args:
- --disable=consider-using-f-string,duplicate-code
exclude: "^(docs/|examples/|tests/|setup.py$)"
- id: pylint
name: pylint (example code)
description: Run pylint rules on "examples/*.py" files
types: [python]
files: "^examples/"
args:
- --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
- id: pylint
name: pylint (test code)
description: Run pylint rules on "tests/*.py" files
types: [python]
files: "^tests/"
args:
- --disable=missing-docstring,consider-using-f-string,duplicate-code

399
.pylintrc Normal file
View file

@ -0,0 +1,399 @@
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
#
# SPDX-License-Identifier: Unlicense
[MASTER]
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code
extension-pkg-whitelist=hid
# Add files or directories to the ignore-list. They should be base names, not
# paths.
ignore=CVS
# Add files or directories matching the regex patterns to the ignore-list. The
# regex matches against base names, not paths.
ignore-patterns=
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
#init-hook=
# Use multiple processes to speed up Pylint.
jobs=1
# List of plugins (as comma separated values of python modules names) to load,
# usually to register additional checkers.
load-plugins=pylint.extensions.no_self_use
# Pickle collected data for later comparisons.
persistent=yes
# Specify a configuration file.
#rcfile=
# Allow loading of arbitrary C extensions. Extensions are imported into the
# active Python interpreter and may run arbitrary code.
unsafe-load-any-extension=no
[MESSAGES CONTROL]
# Only show warnings with the listed confidence levels. Leave empty to show
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
confidence=
# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
# file where it should appear only once).You can also use "--disable=all" to
# disable everything first and then reenable specific checks. For example, if
# you want to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W"
# disable=import-error,raw-checker-failed,bad-inline-option,locally-disabled,file-ignored,suppressed-message,useless-suppression,deprecated-pragma,deprecated-str-translate-call
disable=raw-checker-failed,bad-inline-option,locally-disabled,file-ignored,suppressed-message,useless-suppression,deprecated-pragma,import-error,pointless-string-statement,unspecified-encoding,import-outside-toplevel,too-many-branches,too-many-statements,too-many-public-methods
# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
# multiple time (only on the command line, not in the configuration file where
# it should appear only once). See also the "--disable" option for examples.
enable=
[REPORTS]
# Python expression which should return a note less than 10 (10 is the highest
# note). You have access to the variables errors warning, statement which
# respectively contain the number of errors / warnings messages and the total
# number of statements analyzed. This is used by the global evaluation report
# (RP0004).
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
# Template used to display messages. This is a python new-style format string
# used to format the message information. See doc for all details
#msg-template=
# Set the output format. Available formats are text, parseable, colorized, json
# and msvs (visual studio).You can also give a reporter class, eg
# mypackage.mymodule.MyReporterClass.
output-format=text
# Tells whether to display a full report or only the messages
reports=no
# Activate the evaluation score.
score=yes
[REFACTORING]
# Maximum number of nested blocks for function / method body
max-nested-blocks=5
[LOGGING]
# Logging modules to check that the string format arguments are in logging
# function parameter format
logging-modules=logging
[SPELLING]
# Spelling dictionary name. Available dictionaries: none. To make it working
# install python-enchant package.
spelling-dict=
# List of comma separated words that should not be checked.
spelling-ignore-words=
# A path to a file that contains private dictionary; one word per line.
spelling-private-dict-file=
# Tells whether to store unknown words to indicated private dictionary in
# --spelling-private-dict-file option instead of raising a message.
spelling-store-unknown-words=no
[MISCELLANEOUS]
# List of note tags to take in consideration, separated by a comma.
# notes=FIXME,XXX,TODO
notes=FIXME,XXX
[TYPECHECK]
# List of decorators that produce context managers, such as
# contextlib.contextmanager. Add to this list to register other decorators that
# produce valid context managers.
contextmanager-decorators=contextlib.contextmanager
# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E1101 when accessed. Python regular
# expressions are accepted.
generated-members=
# Tells whether missing members accessed in mixin class should be ignored. A
# mixin class is detected if its name ends with "mixin" (case insensitive).
ignore-mixin-members=yes
# This flag controls whether pylint should warn about no-member and similar
# checks whenever an opaque object is returned when inferring. The inference
# can return multiple potential results while evaluating a Python object, but
# some branches might not be evaluated, which results in partial inference. In
# that case, it might be useful to still emit no-member and other checks for
# the rest of the inferred objects.
ignore-on-opaque-inference=yes
# List of class names for which member attributes should not be checked (useful
# for classes with dynamically set attributes). This supports the use of
# qualified names.
ignored-classes=optparse.Values,thread._local,_thread._local
# List of module names for which member attributes should not be checked
# (useful for modules/projects where namespaces are manipulated during runtime
# and thus existing member attributes cannot be deduced by static analysis. It
# supports qualified module names, as well as Unix pattern matching.
ignored-modules=
# Show a hint with possible names when a member name was not found. The aspect
# of finding the hint is based on edit distance.
missing-member-hint=yes
# The minimum edit distance a name should have in order to be considered a
# similar match for a missing member name.
missing-member-hint-distance=1
# The total number of similar names that should be taken in consideration when
# showing a hint for a missing member.
missing-member-max-choices=1
[VARIABLES]
# List of additional names supposed to be defined in builtins. Remember that
# you should avoid to define new builtins when possible.
additional-builtins=
# Tells whether unused global variables should be treated as a violation.
allow-global-unused-variables=yes
# List of strings which can identify a callback function by name. A callback
# name must start or end with one of those strings.
callbacks=cb_,_cb
# A regular expression matching the name of dummy variables (i.e. expectedly
# not used).
dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
# Argument names that match this expression will be ignored. Default to name
# with leading underscore
ignored-argument-names=_.*|^ignored_|^unused_
# Tells whether we should check for unused import in __init__ files.
init-import=no
# List of qualified module names which can have objects that can redefine
# builtins.
redefining-builtins-modules=six.moves,future.builtins
[FORMAT]
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
# expected-line-ending-format=
expected-line-ending-format=LF
# Regexp for a line that is allowed to be longer than the limit.
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
# Number of spaces of indent required inside a hanging or continued line.
indent-after-paren=4
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
# tab).
indent-string=' '
# Maximum number of characters on a single line.
max-line-length=100
# Maximum number of lines in a module
max-module-lines=1000
# Allow the body of a class to be on the same line as the declaration if body
# contains single statement.
single-line-class-stmt=no
# Allow the body of an if to be on the same line as the test if there is no
# else.
single-line-if-stmt=no
[SIMILARITIES]
# Ignore comments when computing similarities.
ignore-comments=yes
# Ignore docstrings when computing similarities.
ignore-docstrings=yes
# Ignore imports when computing similarities.
ignore-imports=yes
# Minimum lines number of a similarity.
min-similarity-lines=12
[BASIC]
# Regular expression matching correct argument names
argument-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
# Regular expression matching correct attribute names
attr-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
# Bad variable names which should always be refused, separated by a comma
bad-names=foo,bar,baz,toto,tutu,tata
# Regular expression matching correct class attribute names
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
# Regular expression matching correct class names
# class-rgx=[A-Z_][a-zA-Z0-9]+$
class-rgx=[A-Z_][a-zA-Z0-9_]+$
# Regular expression matching correct constant names
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
# Minimum line length for functions/classes that require docstrings, shorter
# ones are exempt.
docstring-min-length=-1
# Regular expression matching correct function names
function-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
# Good variable names which should always be accepted, separated by a comma
# good-names=i,j,k,ex,Run,_
good-names=r,g,b,w,i,j,k,n,x,y,z,ex,ok,Run,_
# Include a hint for the correct naming format with invalid-name
include-naming-hint=no
# Regular expression matching correct inline iteration names
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
# Regular expression matching correct method names
method-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
# Regular expression matching correct module names
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
# Colon-delimited sets of names that determine each other's naming style when
# the name regexes allow several styles.
name-group=
# Regular expression which should only match function or class names that do
# not require a docstring.
no-docstring-rgx=^_
# List of decorators that produce properties, such as abc.abstractproperty. Add
# to this list to register other decorators that produce valid properties.
property-classes=abc.abstractproperty
# Regular expression matching correct variable names
variable-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
[IMPORTS]
# Allow wildcard imports from modules that define __all__.
allow-wildcard-with-all=no
# Analyse import fallback blocks. This can be used to support both Python 2 and
# 3 compatible code, which means that the block might have code that exists
# only in one or another interpreter, leading to false positives when analysed.
analyse-fallback-blocks=no
# Deprecated modules which should not be used, separated by a comma
deprecated-modules=optparse,tkinter.tix
# Create a graph of external dependencies in the given file (report RP0402 must
# not be disabled)
ext-import-graph=
# Create a graph of every (i.e. internal and external) dependencies in the
# given file (report RP0402 must not be disabled)
import-graph=
# Create a graph of internal dependencies in the given file (report RP0402 must
# not be disabled)
int-import-graph=
# Force import order to recognize a module as part of the standard
# compatibility libraries.
known-standard-library=
# Force import order to recognize a module as part of a third party library.
known-third-party=enchant
[CLASSES]
# List of method names used to declare (i.e. assign) instance attributes.
defining-attr-methods=__init__,__new__,setUp
# List of member names, which should be excluded from the protected access
# warning.
exclude-protected=_asdict,_fields,_replace,_source,_make
# List of valid names for the first argument in a class method.
valid-classmethod-first-arg=cls
# List of valid names for the first argument in a metaclass class method.
valid-metaclass-classmethod-first-arg=mcs
[DESIGN]
# Maximum number of arguments for function / method
max-args=5
# Maximum number of attributes for a class (see R0902).
# max-attributes=7
max-attributes=11
# Maximum number of boolean expressions in a if statement
max-bool-expr=5
# Maximum number of branch for function / method body
max-branches=12
# Maximum number of locals for function / method body
max-locals=15
# Maximum number of parents for a class (see R0901).
max-parents=7
# Maximum number of public methods for a class (see R0904).
max-public-methods=20
# Maximum number of return / yield for function / method body
max-returns=6
# Maximum number of statements in function / method body
max-statements=50
# Minimum number of public methods for a class (see R0903).
min-public-methods=1
[EXCEPTIONS]
# Exceptions that will emit a warning when being caught. Defaults to
# "Exception"
overgeneral-exceptions=builtins.Exception

19
.readthedocs.yaml Normal file
View file

@ -0,0 +1,19 @@
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
#
# SPDX-License-Identifier: Unlicense
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Required
version: 2
build:
os: "ubuntu-20.04"
tools:
python: "3.7"
python:
install:
- requirements: docs/requirements.txt
- requirements: requirements.txt

View file

@ -1,27 +0,0 @@
dist: trusty
sudo: false
language: python
python:
- "3.6"
cache:
pip: true
deploy:
- provider: pypi
user: adafruit-travis
password:
secure:
"cuXaREGKMzcM6684fDp5CeHOANcay4Lylfl3g3tU5Pcx2bxqj7oOZ+N/GMEG2KhJPofPcXky75tyBh8PVVcwrpkUeZgmb3Cyny4SdnKOoazdyhFI8wwqeMh2KLXcZXbC49Bg6iFDxr+PPzWkzqCsGa3XKIxdCmGDwdElBSuMpcTA+/GR588R/7F4UDGaNqdhpKk1csNYQ94gP6Hil4op9Ouw0hy5rKMBo79UvnoFdoMQiYQvZFlRSUvNbfcoECPoJnoNjPCwwDl5GVR1+ohU1xPkPFUj1aaj/rUaH1AXWlHYtHtwUsc54UP4VpSNV4qgQ3+AtHe0rhos9ZoPq/+f5LTlQ4bjAUbqWJCr3bIooTIBMc3c5sWxTBQIduMrJ5MkAs0m4ZS5KBu8ReiczP3v9XoI60hcZSZ1Uq63L9O8/LyTe484et9/CgmU5uN8dJdpTp+017GzgP8dT7xoWnxxgnBqdRlJ0rjhrPTk4T6d9OYzCJguitgmZOYx9GVLE2E8/c+r0ybxutcG0w3EI2+TZzWBxS+kUgQhCFL07PTZ5jMCBcJlvzzhphN+7IuUlecQJKHgRd450TxS3qcj+CQtWvCr/SvfhC6HJWE7uEqviJxV7kBvYxoUX0XQYeOzC6Ah4WH09fKccXbdhOoV5APWpb7Pa74XJWZrcKZuHuYtvlc="
on:
tags: true
install:
- pip install -r requirements.txt
- pip install --force-reinstall pylint==1.9.2
- pip install circuitpython-build-tools Sphinx sphinx-rtd-theme
script:
- pylint adafruit_platformdetect/**.py
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name,bad-whitespace examples/*.py)
# - cd docs && sphinx-build -E -W -b html . _build/html && cd ..

View file

@ -1,74 +1,135 @@
# Contributor Covenant Code of Conduct
<!--
SPDX-FileCopyrightText: 2014 Coraline Ada Ehmke
SPDX-FileCopyrightText: 2019 Kattni Rembor for Adafruit Industries
SPDX-License-Identifier: CC-BY-4.0
-->
# Adafruit Community Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
contributors and leaders pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.
size, disability, ethnicity, gender identity and expression, level or type of
experience, education, socio-economic status, nationality, personal appearance,
race, religion, or sexual identity and orientation.
## Our Standards
We are committed to providing a friendly, safe and welcoming environment for
all.
Examples of behavior that contributes to creating a positive environment
include:
* Be kind and courteous to others
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Collaborating with other community members
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* The use of sexualized language or imagery and sexual attention or advances
* The use of inappropriate images, including in a community member's avatar
* The use of inappropriate language, including in a community member's nickname
* Any spamming, flaming, baiting or other attention-stealing behavior
* Excessive or unwelcome helping; answering outside the scope of the question
asked
* Trolling, insulting/derogatory comments, and personal or political attacks
* Promoting or spreading disinformation, lies, or conspiracy theories against
a person, group, organisation, project, or community
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
* Other conduct which could reasonably be considered inappropriate
The goal of the standards and moderation guidelines outlined here is to build
and maintain a respectful community. We ask that you dont just aim to be
"technically unimpeachable", but rather try to be your best self.
We value many things beyond technical expertise, including collaboration and
supporting others within our community. Providing a positive experience for
other community members can have a much more significant impact than simply
providing the correct answer.
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
Project leaders are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
Project leaders have the right and responsibility to remove, edit, or
reject messages, comments, commits, code, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
permanently any community member for other behaviors that they deem
inappropriate, threatening, offensive, or harmful.
## Moderation
Instances of behaviors that violate the Adafruit Community Code of Conduct
may be reported by any member of the community. Community members are
encouraged to report these situations, including situations they witness
involving other community members.
You may report in the following ways:
In any situation, you may send an email to <support@adafruit.com>.
On the Adafruit Discord, you may send an open message from any channel
to all Community Moderators by tagging @community moderators. You may
also send an open message from any channel, or a direct message to
@kattni#1507, @tannewt#4653, @Dan Halbert#1614, @cater#2442,
@sommersoft#0222, @Mr. Certainly#0472 or @Andon#8175.
Email and direct message reports will be kept confidential.
In situations on Discord where the issue is particularly egregious, possibly
illegal, requires immediate action, or violates the Discord terms of service,
you should also report the message directly to Discord.
These are the steps for upholding our communitys standards of conduct.
1. Any member of the community may report any situation that violates the
Adafruit Community Code of Conduct. All reports will be reviewed and
investigated.
2. If the behavior is an egregious violation, the community member who
committed the violation may be banned immediately, without warning.
3. Otherwise, moderators will first respond to such behavior with a warning.
4. Moderators follow a soft "three strikes" policy - the community member may
be given another chance, if they are receptive to the warning and change their
behavior.
5. If the community member is unreceptive or unreasonable when warned by a
moderator, or the warning goes unheeded, they may be banned for a first or
second offense. Repeated offenses will result in the community member being
banned.
## Scope
This Code of Conduct and the enforcement policies listed above apply to all
Adafruit Community venues. This includes but is not limited to any community
spaces (both public and private), the entire Adafruit Discord server, and
Adafruit GitHub repositories. Examples of Adafruit Community spaces include
but are not limited to meet-ups, audio chats on the Adafruit Discord, or
interaction at a conference.
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at support@adafruit.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
when an individual is representing the project or its community. As a community
member, you are representing our community, and are expected to behave
accordingly.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at [http://contributor-covenant.org/version/1/4][version]
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 1.4, available at
<https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>,
and the [Rust Code of Conduct](https://www.rust-lang.org/en-US/conduct.html).
[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
For other projects adopting the Adafruit Community Code of
Conduct, please contact the maintainers of those projects for enforcement.
If you wish to use this code of conduct for your own project, consider
explicitly mentioning your moderation policy or making a copy with your
own moderation policy so as to avoid confusion.

324
LICENSES/CC-BY-4.0.txt Normal file
View file

@ -0,0 +1,324 @@
Creative Commons Attribution 4.0 International Creative Commons Corporation
("Creative Commons") is not a law firm and does not provide legal services
or legal advice. Distribution of Creative Commons public licenses does not
create a lawyer-client or other relationship. Creative Commons makes its licenses
and related information available on an "as-is" basis. Creative Commons gives
no warranties regarding its licenses, any material licensed under their terms
and conditions, or any related information. Creative Commons disclaims all
liability for damages resulting from their use to the fullest extent possible.
Using Creative Commons Public Licenses
Creative Commons public licenses provide a standard set of terms and conditions
that creators and other rights holders may use to share original works of
authorship and other material subject to copyright and certain other rights
specified in the public license below. The following considerations are for
informational purposes only, are not exhaustive, and do not form part of our
licenses.
Considerations for licensors: Our public licenses are intended for use by
those authorized to give the public permission to use material in ways otherwise
restricted by copyright and certain other rights. Our licenses are irrevocable.
Licensors should read and understand the terms and conditions of the license
they choose before applying it. Licensors should also secure all rights necessary
before applying our licenses so that the public can reuse the material as
expected. Licensors should clearly mark any material not subject to the license.
This includes other CC-licensed material, or material used under an exception
or limitation to copyright. More considerations for licensors : wiki.creativecommons.org/Considerations_for_licensors
Considerations for the public: By using one of our public licenses, a licensor
grants the public permission to use the licensed material under specified
terms and conditions. If the licensor's permission is not necessary for any
reasonfor example, because of any applicable exception or limitation to copyrightthen
that use is not regulated by the license. Our licenses grant only permissions
under copyright and certain other rights that a licensor has authority to
grant. Use of the licensed material may still be restricted for other reasons,
including because others have copyright or other rights in the material. A
licensor may make special requests, such as asking that all changes be marked
or described. Although not required by our licenses, you are encouraged to
respect those requests where reasonable. More considerations for the public
: wiki.creativecommons.org/Considerations_for_licensees Creative Commons Attribution
4.0 International Public License
By exercising the Licensed Rights (defined below), You accept and agree to
be bound by the terms and conditions of this Creative Commons Attribution
4.0 International Public License ("Public License"). To the extent this Public
License may be interpreted as a contract, You are granted the Licensed Rights
in consideration of Your acceptance of these terms and conditions, and the
Licensor grants You such rights in consideration of benefits the Licensor
receives from making the Licensed Material available under these terms and
conditions.
Section 1 Definitions.
a. Adapted Material means material subject to Copyright and Similar Rights
that is derived from or based upon the Licensed Material and in which the
Licensed Material is translated, altered, arranged, transformed, or otherwise
modified in a manner requiring permission under the Copyright and Similar
Rights held by the Licensor. For purposes of this Public License, where the
Licensed Material is a musical work, performance, or sound recording, Adapted
Material is always produced where the Licensed Material is synched in timed
relation with a moving image.
b. Adapter's License means the license You apply to Your Copyright and Similar
Rights in Your contributions to Adapted Material in accordance with the terms
and conditions of this Public License.
c. Copyright and Similar Rights means copyright and/or similar rights closely
related to copyright including, without limitation, performance, broadcast,
sound recording, and Sui Generis Database Rights, without regard to how the
rights are labeled or categorized. For purposes of this Public License, the
rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
d. Effective Technological Measures means those measures that, in the absence
of proper authority, may not be circumvented under laws fulfilling obligations
under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996,
and/or similar international agreements.
e. Exceptions and Limitations means fair use, fair dealing, and/or any other
exception or limitation to Copyright and Similar Rights that applies to Your
use of the Licensed Material.
f. Licensed Material means the artistic or literary work, database, or other
material to which the Licensor applied this Public License.
g. Licensed Rights means the rights granted to You subject to the terms and
conditions of this Public License, which are limited to all Copyright and
Similar Rights that apply to Your use of the Licensed Material and that the
Licensor has authority to license.
h. Licensor means the individual(s) or entity(ies) granting rights under this
Public License.
i. Share means to provide material to the public by any means or process that
requires permission under the Licensed Rights, such as reproduction, public
display, public performance, distribution, dissemination, communication, or
importation, and to make material available to the public including in ways
that members of the public may access the material from a place and at a time
individually chosen by them.
j. Sui Generis Database Rights means rights other than copyright resulting
from Directive 96/9/EC of the European Parliament and of the Council of 11
March 1996 on the legal protection of databases, as amended and/or succeeded,
as well as other essentially equivalent rights anywhere in the world.
k. You means the individual or entity exercising the Licensed Rights under
this Public License. Your has a corresponding meaning.
Section 2 Scope.
a. License grant.
1. Subject to the terms and conditions of this Public License, the Licensor
hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive,
irrevocable license to exercise the Licensed Rights in the Licensed Material
to:
A. reproduce and Share the Licensed Material, in whole or in part; and
B. produce, reproduce, and Share Adapted Material.
2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions
and Limitations apply to Your use, this Public License does not apply, and
You do not need to comply with its terms and conditions.
3. Term. The term of this Public License is specified in Section 6(a).
4. Media and formats; technical modifications allowed. The Licensor authorizes
You to exercise the Licensed Rights in all media and formats whether now known
or hereafter created, and to make technical modifications necessary to do
so. The Licensor waives and/or agrees not to assert any right or authority
to forbid You from making technical modifications necessary to exercise the
Licensed Rights, including technical modifications necessary to circumvent
Effective Technological Measures. For purposes of this Public License, simply
making modifications authorized by this Section 2(a)(4) never produces Adapted
Material.
5. Downstream recipients.
A. Offer from the Licensor Licensed Material. Every recipient of the Licensed
Material automatically receives an offer from the Licensor to exercise the
Licensed Rights under the terms and conditions of this Public License.
B. No downstream restrictions. You may not offer or impose any additional
or different terms or conditions on, or apply any Effective Technological
Measures to, the Licensed Material if doing so restricts exercise of the Licensed
Rights by any recipient of the Licensed Material.
6. No endorsement. Nothing in this Public License constitutes or may be construed
as permission to assert or imply that You are, or that Your use of the Licensed
Material is, connected with, or sponsored, endorsed, or granted official status
by, the Licensor or others designated to receive attribution as provided in
Section 3(a)(1)(A)(i).
b. Other rights.
1. Moral rights, such as the right of integrity, are not licensed under this
Public License, nor are publicity, privacy, and/or other similar personality
rights; however, to the extent possible, the Licensor waives and/or agrees
not to assert any such rights held by the Licensor to the limited extent necessary
to allow You to exercise the Licensed Rights, but not otherwise.
2. Patent and trademark rights are not licensed under this Public License.
3. To the extent possible, the Licensor waives any right to collect royalties
from You for the exercise of the Licensed Rights, whether directly or through
a collecting society under any voluntary or waivable statutory or compulsory
licensing scheme. In all other cases the Licensor expressly reserves any right
to collect such royalties.
Section 3 License Conditions.
Your exercise of the Licensed Rights is expressly made subject to the following
conditions.
a. Attribution.
1. If You Share the Licensed Material (including in modified form), You must:
A. retain the following if it is supplied by the Licensor with the Licensed
Material:
i. identification of the creator(s) of the Licensed Material and any others
designated to receive attribution, in any reasonable manner requested by the
Licensor (including by pseudonym if designated);
ii. a copyright notice;
iii. a notice that refers to this Public License;
iv. a notice that refers to the disclaimer of warranties;
v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
B. indicate if You modified the Licensed Material and retain an indication
of any previous modifications; and
C. indicate the Licensed Material is licensed under this Public License, and
include the text of, or the URI or hyperlink to, this Public License.
2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner
based on the medium, means, and context in which You Share the Licensed Material.
For example, it may be reasonable to satisfy the conditions by providing a
URI or hyperlink to a resource that includes the required information.
3. If requested by the Licensor, You must remove any of the information required
by Section 3(a)(1)(A) to the extent reasonably practicable.
4. If You Share Adapted Material You produce, the Adapter's License You apply
must not prevent recipients of the Adapted Material from complying with this
Public License.
Section 4 Sui Generis Database Rights.
Where the Licensed Rights include Sui Generis Database Rights that apply to
Your use of the Licensed Material:
a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract,
reuse, reproduce, and Share all or a substantial portion of the contents of
the database;
b. if You include all or a substantial portion of the database contents in
a database in which You have Sui Generis Database Rights, then the database
in which You have Sui Generis Database Rights (but not its individual contents)
is Adapted Material; and
c. You must comply with the conditions in Section 3(a) if You Share all or
a substantial portion of the contents of the database.
For the avoidance of doubt, this Section 4 supplements and does not replace
Your obligations under this Public License where the Licensed Rights include
other Copyright and Similar Rights.
Section 5 Disclaimer of Warranties and Limitation of Liability.
a. Unless otherwise separately undertaken by the Licensor, to the extent possible,
the Licensor offers the Licensed Material as-is and as-available, and makes
no representations or warranties of any kind concerning the Licensed Material,
whether express, implied, statutory, or other. This includes, without limitation,
warranties of title, merchantability, fitness for a particular purpose, non-infringement,
absence of latent or other defects, accuracy, or the presence or absence of
errors, whether or not known or discoverable. Where disclaimers of warranties
are not allowed in full or in part, this disclaimer may not apply to You.
b. To the extent possible, in no event will the Licensor be liable to You
on any legal theory (including, without limitation, negligence) or otherwise
for any direct, special, indirect, incidental, consequential, punitive, exemplary,
or other losses, costs, expenses, or damages arising out of this Public License
or use of the Licensed Material, even if the Licensor has been advised of
the possibility of such losses, costs, expenses, or damages. Where a limitation
of liability is not allowed in full or in part, this limitation may not apply
to You.
c. The disclaimer of warranties and limitation of liability provided above
shall be interpreted in a manner that, to the extent possible, most closely
approximates an absolute disclaimer and waiver of all liability.
Section 6 Term and Termination.
a. This Public License applies for the term of the Copyright and Similar Rights
licensed here. However, if You fail to comply with this Public License, then
Your rights under this Public License terminate automatically.
b. Where Your right to use the Licensed Material has terminated under Section
6(a), it reinstates:
1. automatically as of the date the violation is cured, provided it is cured
within 30 days of Your discovery of the violation; or
2. upon express reinstatement by the Licensor.
c. For the avoidance of doubt, this Section 6(b) does not affect any right
the Licensor may have to seek remedies for Your violations of this Public
License.
d. For the avoidance of doubt, the Licensor may also offer the Licensed Material
under separate terms or conditions or stop distributing the Licensed Material
at any time; however, doing so will not terminate this Public License.
e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
Section 7 Other Terms and Conditions.
a. The Licensor shall not be bound by any additional or different terms or
conditions communicated by You unless expressly agreed.
b. Any arrangements, understandings, or agreements regarding the Licensed
Material not stated herein are separate from and independent of the terms
and conditions of this Public License.
Section 8 Interpretation.
a. For the avoidance of doubt, this Public License does not, and shall not
be interpreted to, reduce, limit, restrict, or impose conditions on any use
of the Licensed Material that could lawfully be made without permission under
this Public License.
b. To the extent possible, if any provision of this Public License is deemed
unenforceable, it shall be automatically reformed to the minimum extent necessary
to make it enforceable. If the provision cannot be reformed, it shall be severed
from this Public License without affecting the enforceability of the remaining
terms and conditions.
c. No term or condition of this Public License will be waived and no failure
to comply consented to unless expressly agreed to by the Licensor.
d. Nothing in this Public License constitutes or may be interpreted as a limitation
upon, or waiver of, any privileges and immunities that apply to the Licensor
or You, including from the legal processes of any jurisdiction or authority.
Creative Commons is not a party to its public licenses. Notwithstanding, Creative
Commons may elect to apply one of its public licenses to material it publishes
and in those instances will be considered the "Licensor." The text of the
Creative Commons public licenses is dedicated to the public domain under the
CC0 Public Domain Dedication. Except for the limited purpose of indicating
that material is shared under a Creative Commons public license or as otherwise
permitted by the Creative Commons policies published at creativecommons.org/policies,
Creative Commons does not authorize the use of the trademark "Creative Commons"
or any other trademark or logo of Creative Commons without its prior written
consent including, without limitation, in connection with any unauthorized
modifications to any of its public licenses or any other arrangements, understandings,
or agreements concerning use of licensed material. For the avoidance of doubt,
this paragraph does not form part of the public licenses.
Creative Commons may be contacted at creativecommons.org.

19
LICENSES/MIT.txt Normal file
View file

@ -0,0 +1,19 @@
MIT License Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next
paragraph) shall be included in all copies or substantial portions of the
Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

20
LICENSES/Unlicense.txt Normal file
View file

@ -0,0 +1,20 @@
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute
this software, either in source code form or as a compiled binary, for any
purpose, commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this
software dedicate any and all copyright interest in the software to the public
domain. We make this dedication for the benefit of the public at large and
to the detriment of our heirs and successors. We intend this dedication to
be an overt act of relinquishment in perpetuity of all present and future
rights to this software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information,
please refer to <https://unlicense.org/>

View file

@ -1,6 +1,22 @@
Introduction
============
.. image:: https://readthedocs.org/projects/adafruit-platformdetect/badge/?version=latest
:target: https://circuitpython.readthedocs.io/projects/platformdetect/en/latest/
:alt: Documentation Status
.. image:: https://img.shields.io/discord/327254708534116352.svg
:target: https://adafru.it/discord
:alt: Discord
.. image:: https://github.com/adafruit/Adafruit_Python_PlatformDetect/workflows/Build%20CI/badge.svg
:target: https://github.com/adafruit/Adafruit_Python_PlatformDetect/actions
:alt: Build Status
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
:alt: Code Style: Black
This library provides best-guess platform detection for a range of single-board
computers and (potentially) other platforms. It was written primarily for use
in `Adafruit_Blinka <https://github.com/adafruit/Adafruit_Blinka>`_, but may be
@ -13,53 +29,69 @@ generally dependent on the former. Platform info is gathered from:
- Various files on Linux systems:
- `/proc/cpuinfo` (for processor info, Raspberry Pi hardware revisions, etc.)
- /proc/cpuinfo (for processor info, Raspberry Pi hardware revisions, etc.)
- `/proc/device-tree/compatible` (for 96Boards info)
- /proc/device-tree/compatible (for 96Boards info)
- Beaglebone EEPROM board IDs
- Distribution-specific files such as `/etc/armbian-release`.
- Distribution-specific files such as /etc/armbian-release.
The API is currently unstable and may change drastically in future releases.
Dependencies
=============
This driver depends on:
Installation
============
* Python 3.7 or higher
Installing from PyPI
=====================
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
PyPI <https://pypi.org/project/adafruit-circuitpython-motorkit/>`_. To install for current user:
PyPI <https://pypi.org/project/Adafruit-PlatformDetect/>`_. To install for current user:
.. code-block:: shell
pip3 install Adafruit-PlatformDetect
pip3 install Adafruit-PlatformDetect
To install system-wide (this may be required in some cases):
.. code-block:: shell
sudo pip3 install Adafruit-PlatformDetect
sudo pip3 install Adafruit-PlatformDetect
To install in a virtual environment in your current project:
.. code-block:: shell
mkdir project-name && cd project-name
python3 -m venv .env
source .env/bin/activate
pip3 install Adafruit-PlatformDetect
mkdir project-name && cd project-name
python3 -m venv .env
source .env/bin/activate
pip3 install Adafruit-PlatformDetect
Usage
=====
Usage Example
=============
.. code-block:: python
from adafruit_platformdetect import Detector
detector = Detector()
print("Chip id: ", detector.chip.id)
print("Board id: ", detector.board.id)
from adafruit_platformdetect import Detector
detector = Detector()
print("Chip id: ", detector.chip.id)
print("Board id: ", detector.board.id)
# Check for specific board models:
print("Pi 3B+? ", detector.board.RASPBERRY_PI_3B_PLUS)
print("BBB? ", detector.board.BEAGLEBONE_BLACK)
print("Orange Pi PC? ", detector.board.ORANGE_PI_PC)
print("generic Linux PC? ", detector.board.GENERIC_LINUX_PC)
# Check for specific board models:
print("Pi 3B+? ", detector.board.RASPBERRY_PI_3B_PLUS)
print("BBB? ", detector.board.BEAGLEBONE_BLACK)
print("Orange Pi PC? ", detector.board.ORANGE_PI_PC)
print("generic Linux PC? ", detector.board.GENERIC_LINUX_PC)
Contributing
============
Contributions are welcome! Please read our `Code of Conduct
<https://github.com/adafruit/Adafruit_Python_PlatformDetect/blob/master/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.
Documentation
=============
For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.

3
README.rst.license Normal file
View file

@ -0,0 +1,3 @@
# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
#
# SPDX-License-Identifier: MIT

View file

@ -1,81 +1,76 @@
# Copyright (c) 2014-2018 Adafruit Industries
# Author: Tony DiCola, Limor Fried, Brennen Bearnes
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# SPDX-FileCopyrightText: 2014-2018 Tony DiCola, Limor Fried, Brennen Bearnes
#
# SPDX-License-Identifier: MIT
"""
Attempt to detect the current platform.
"""
import sys
import platform
import os
import re
import sys
try:
from typing import Optional
except ImportError:
pass
from adafruit_platformdetect.board import Board
from adafruit_platformdetect.chip import Chip
# Needed to find libs (like libusb) installed by homebrew on Apple Silicon
if sys.platform == "darwin":
os.environ["DYLD_FALLBACK_LIBRARY_PATH"] = "/opt/homebrew/lib/"
# Various methods here may retain state in future, so tell pylint not to worry
# that they don't use self right now:
# pylint: disable=no-self-use
class Detector:
"""Wrap various platform detection functions."""
def __init__(self):
def __init__(self) -> None:
self.board = Board(self)
self.chip = Chip(self)
def get_cpuinfo_field(self, field):
def get_cpuinfo_field(self, field: str) -> Optional[str]:
"""
Search /proc/cpuinfo for a field and return its value, if found,
otherwise None.
"""
# Match a line like 'Hardware : BCM2709':
pattern = r'^' + field + r'\s+:\s+(.*)$'
with open('/proc/cpuinfo', 'r') as infile:
cpuinfo = infile.read().split('\n')
for line in cpuinfo:
match = re.search(pattern, line, flags=re.IGNORECASE)
if match:
return match.group(1)
pattern = r"^" + field + r"\s+:\s+(.*)$"
with open("/proc/cpuinfo", "r", encoding="utf-8") as infile:
cpuinfo = infile.read().split("\n")
for line in cpuinfo:
match = re.search(pattern, line, flags=re.IGNORECASE)
if match:
return match.group(1)
return None
def check_dt_compatible_value(self, value):
def check_dt_compatible_value(self, value: str) -> bool:
"""
Search /proc/device-tree/compatible for a value and return True, if found,
otherwise False.
"""
# Match a value like 'qcom,apq8016-sbc':
if value in open('/proc/device-tree/compatible').read():
dt_compatible = self.get_device_compatible()
if dt_compatible and value in dt_compatible:
return True
return False
def get_armbian_release_field(self, field):
def get_armbian_release_field(self, field: str) -> Optional[str]:
"""
Search /etc/armbian-release, if it exists, for a field and return its
value, if found, otherwise None.
"""
field_value = None
pattern = r'^' + field + r'=(.*)'
pattern = r"^" + field + r"=(.*)"
try:
with open("/etc/armbian-release", 'r') as release_file:
armbian = release_file.read().split('\n')
with open("/etc/armbian-release", "r", encoding="utf-8") as release_file:
armbian = release_file.read().split("\n")
for line in armbian:
match = re.search(pattern, line)
if match:
@ -84,3 +79,56 @@ class Detector:
pass
return field_value
def get_device_model(self) -> Optional[str]:
"""
Search /proc/device-tree/model for the device model and return its value, if found,
otherwise None.
"""
try:
with open("/proc/device-tree/model", "r", encoding="utf-8") as model_file:
return model_file.read()
except FileNotFoundError:
pass
return None
def get_device_compatible(self) -> Optional[str]:
"""
Search /proc/device-tree/compatible for the compatible chip name.
"""
try:
with open(
"/proc/device-tree/compatible", "r", encoding="utf-8"
) as model_file:
return model_file.read()
except FileNotFoundError:
pass
return None
def check_board_asset_tag_value(self) -> Optional[str]:
"""
Search /sys/devices/virtual/dmi/id for the device model and return its value, if found,
otherwise None.
"""
try:
with open(
"/sys/devices/virtual/dmi/id/board_asset_tag", "r", encoding="utf-8"
) as tag_file:
return tag_file.read().strip()
except FileNotFoundError:
pass
return None
def check_board_name_value(self) -> Optional[str]:
"""
Search /sys/devices/virtual/dmi/id for the board name and return its value, if found,
otherwise None. Debian/ubuntu based
"""
try:
with open(
"/sys/devices/virtual/dmi/id/board_name", "r", encoding="utf-8"
) as board_name_file:
return board_name_file.read().strip()
except FileNotFoundError:
pass
return None

File diff suppressed because it is too large Load diff

View file

@ -1,103 +1,490 @@
"""Attempt detection of current chip / CPU."""
import sys
import os
# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
`adafruit_platformdetect.chip`
================================================================================
Attempt detection of current chip / CPU
* Author(s): Melissa LeBlanc-Williams
Implementation Notes
--------------------
**Software and Dependencies:**
* Linux and Python 3.7 or Higher
"""
import os
import sys
try:
from typing import Optional
except ImportError:
pass
from adafruit_platformdetect.constants import chips
__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PlatformDetect.git"
AM33XX = "AM33XX"
BCM2XXX = "BCM2XXX"
ESP8266 = "ESP8266"
SAMD21 = "SAMD21"
STM32 = "STM32"
SUN8I = "SUN8I"
S805 = "S805"
S905 = "S905"
APQ8016 = "APQ8016"
GENERIC_X86 = "GENERIC_X86"
FT232H = "FT232H"
class Chip:
"""Attempt detection of current chip / CPU."""
def __init__(self, detector):
self.detector = detector
def __init__(self, detector) -> None:
self.detector = detector
self._chip_id = None
# pylint: disable=invalid-name,too-many-branches,too-many-return-statements
@property
def id(self): # pylint: disable=invalid-name,too-many-branches,too-many-return-statements
def id(
self,
) -> Optional[str]:
"""Return a unique id for the detected chip, if any."""
# There are some times we want to trick the platform detection
# say if a raspberry pi doesn't have the right ID, or for testing
try:
return os.environ['BLINKA_FORCECHIP']
except KeyError: # no forced chip, continue with testing!
pass
# Special case, if we have an environment var set, we could use FT232H
try:
if os.environ['BLINKA_FT232H']:
# we can't have ftdi1 as a dependency cause its wierd
# to install, sigh.
import ftdi1 as ftdi # pylint: disable=import-error
try:
ctx = None
ctx = ftdi.new() # Create a libftdi context.
# Enumerate FTDI devices.
count, _ = ftdi.usb_find_all(ctx, 0, 0)
if count < 0:
raise RuntimeError('ftdi_usb_find_all returned error %d : %s' %
count, ftdi.get_error_string(self._ctx))
if count == 0:
raise RuntimeError('BLINKA_FT232H environment variable' + \
'set, but no FT232H device found')
finally:
# Make sure to clean up list and context when done.
if ctx is not None:
ftdi.free(ctx)
return FT232H
except KeyError: # no FT232H environment var
pass
# Caching
if self._chip_id:
return self._chip_id
if getattr(os, "environ", None) is not None:
try:
return os.environ["BLINKA_FORCECHIP"]
except KeyError: # no forced chip, continue with testing!
pass
# Special cases controlled by environment var
if os.environ.get("BLINKA_FT232H"):
from pyftdi.usbtools import UsbTools
# look for it based on PID/VID
count = len(UsbTools.find_all([(0x0403, 0x6014)]))
if count == 0:
raise RuntimeError(
"BLINKA_FT232H environment variable "
+ "set, but no FT232H device found"
)
self._chip_id = chips.FT232H
return self._chip_id
if os.environ.get("BLINKA_FT2232H"):
from pyftdi.usbtools import UsbTools
# look for it based on PID/VID
count = len(UsbTools.find_all([(0x0403, 0x6010)]))
if count == 0:
raise RuntimeError(
"BLINKA_FT2232H environment variable "
+ "set, but no FT2232H device found"
)
self._chip_id = chips.FT2232H
return self._chip_id
if os.environ.get("BLINKA_FT4232H"):
from pyftdi.usbtools import UsbTools
# look for it based on PID/VID
count = len(UsbTools.find_all([(0x0403, 0x6011)]))
if count == 0:
raise RuntimeError(
"BLINKA_FT4232H environment variable "
+ "set, but no FT4232H device found"
)
self._chip_id = chips.FT4232H
return self._chip_id
if os.environ.get("BLINKA_MCP2221"):
import hid
# look for it based on PID/VID
for dev in hid.enumerate():
if dev["vendor_id"] == 0x04D8 and dev["product_id"] == 0x00DD:
self._chip_id = chips.MCP2221
return self._chip_id
raise RuntimeError(
"BLINKA_MCP2221 environment variable "
+ "set, but no MCP2221 device found"
)
if os.environ.get("BLINKA_OS_AGNOSTIC"):
# we don't need to look for this chip, it's just a flag
self._chip_id = chips.OS_AGNOSTIC
return self._chip_id
if os.environ.get("BLINKA_U2IF"):
import hid
# look for it based on PID/VID
for dev in hid.enumerate():
vendor = dev["vendor_id"]
product = dev["product_id"]
# NOTE: If any products are added here, they need added
# to _rp2040_u2if_id() in board.py as well.
# pylint: disable=too-many-boolean-expressions
if (
(
# Raspberry Pi Pico
# Radxa X4
vendor in (0xCAFE, 0xCAFF)
and product == 0x4005
)
or (
# Waveshare RP2040 One
vendor == 0x2E8A
and product == 0x103A
)
or (
# Feather RP2040
# Itsy Bitsy RP2040
# QT Py RP2040
# QT2040 Trinkey
# MacroPad RP2040
# Feather RP2040 ThinkInk
# Feather RP2040 RFM
# Feather RP2040 CAN Bus
vendor == 0x239A
and product
in (
0x00F1,
0x00FD,
0x00F7,
0x0109,
0x0107,
0x812C,
0x812E,
0x8130,
0x0105,
)
)
):
self._chip_id = chips.RP2040_U2IF
return self._chip_id
raise RuntimeError(
"BLINKA_U2IF environment variable "
+ "set, but no compatible device found"
)
if os.environ.get("BLINKA_GREATFET"):
import usb
if usb.core.find(idVendor=0x1D50, idProduct=0x60E6) is not None:
self._chip_id = chips.LPC4330
return self._chip_id
raise RuntimeError(
"BLINKA_GREATFET environment variable "
+ "set, but no GreatFET device found"
)
if os.environ.get("BLINKA_NOVA"):
self._chip_id = chips.BINHO
return self._chip_id
platform = sys.platform
if platform == "linux":
return self._linux_id()
if platform in ("linux", "linux2"):
self._chip_id = self._linux_id()
return self._chip_id
if platform == "esp8266":
return ESP8266
self._chip_id = chips.ESP8266
return self._chip_id
if platform == "samd21":
return SAMD21
self._chip_id = chips.SAMD21
return self._chip_id
if platform == "pyboard":
return STM32
self._chip_id = chips.STM32F405
return self._chip_id
if platform == "rp2":
self._chip_id = chips.RP2040
return self._chip_id
# nothing found!
return None
# pylint: enable=invalid-name
def _linux_id(self):
def _linux_id(self) -> Optional[str]:
# pylint: disable=too-many-branches,too-many-statements
# pylint: disable=too-many-return-statements
"""Attempt to detect the CPU on a computer running the Linux kernel."""
if self.detector.check_dt_compatible_value("beagle,am67a-beagley-ai"):
return chips.AM67A
if self.detector.check_dt_compatible_value("ti,am625"):
return chips.AM625X
if self.detector.check_dt_compatible_value("ti,am654"):
return chips.AM65XX
if self.detector.check_dt_compatible_value("ti,am652"):
return chips.AM65XX
if self.detector.check_dt_compatible_value("sun4i-a10"):
return chips.A10
if self.detector.check_dt_compatible_value("sun7i-a20"):
return chips.A20
if self.detector.check_dt_compatible_value("amlogic,g12a"):
return chips.S905Y2
if self.detector.check_dt_compatible_value("amlogic, g12a"):
return chips.S905X3
if self.detector.check_dt_compatible_value("sun8i-h3"):
return chips.H3
if self.detector.check_dt_compatible_value("qcom,apq8016"):
return APQ8016
return chips.APQ8016
if self.detector.check_dt_compatible_value("fu500"):
return chips.HFU540
if self.detector.check_dt_compatible_value("sun20iw1p1"):
return chips.C906
# Older Builds
if self.detector.check_dt_compatible_value("sifive"):
return chips.JH71X0
# Newer Builds
if self.detector.check_dt_compatible_value("jh7100"):
return chips.JH71X0
if self.detector.check_dt_compatible_value("jh7110"):
return chips.JH7110
if self.detector.check_dt_compatible_value("sun8i-a33"):
return chips.A33
if self.detector.check_dt_compatible_value("rockchip,rk3308"):
return chips.RK3308
if self.detector.check_dt_compatible_value("radxa,rock-4c-plus"):
return chips.RK3399_T
if self.detector.check_dt_compatible_value("rockchip,rk3399pro"):
return chips.RK3399PRO
if self.detector.check_dt_compatible_value("rockchip,rk3399"):
return chips.RK3399
if self.detector.check_dt_compatible_value("rockchip,rk3288"):
return chips.RK3288
if self.detector.check_dt_compatible_value("rockchip,rk3328"):
return chips.RK3328
if self.detector.check_dt_compatible_value("rockchip,rk3566"):
return chips.RK3566
if self.detector.check_dt_compatible_value("rockchip,rk3568"):
return chips.RK3568
if self.detector.check_dt_compatible_value("rockchip,rk3588s"):
return chips.RK3588S
if self.detector.check_dt_compatible_value("rockchip,rk3588"):
return chips.RK3588
if self.detector.check_dt_compatible_value("rockchip,rv1106"):
return chips.RV1106
if self.detector.check_dt_compatible_value("rockchip,rv1103"):
return chips.RV1103
if self.detector.check_dt_compatible_value("amlogic,a311d"):
return chips.A311D
if self.detector.check_dt_compatible_value("st,stm32mp157"):
return chips.STM32MP157
if self.detector.check_dt_compatible_value("st,stm32mp153"):
return chips.STM32MP157DAA1
if self.detector.check_dt_compatible_value("sun50i-a64"):
return chips.A64
if self.detector.check_dt_compatible_value("sun50i-h5"):
return chips.H5
if self.detector.check_dt_compatible_value("sun50i-h618"):
return chips.H618
if self.detector.check_dt_compatible_value("sun50i-h616"):
return chips.H616
if self.detector.check_dt_compatible_value("sun50iw9"):
return chips.H616
if self.detector.check_dt_compatible_value("sun50i-h6"):
return chips.H6
if self.detector.check_dt_compatible_value("sun55iw3"):
return chips.T527
if self.detector.check_dt_compatible_value("spacemit,k1-x"):
return chips.K1
if self.detector.check_dt_compatible_value("renesas,r9a09g056"):
return chips.RZV2N
if self.detector.check_dt_compatible_value("renesas,r9a09g057"):
return chips.RZV2H
if self.detector.check_dt_compatible_value("mediatek,mt8167"):
return chips.MT8167
if self.detector.check_dt_compatible_value("imx6ull"):
return chips.IMX6ULL
if self.detector.check_dt_compatible_value("ti,j721e"):
return chips.TDA4VM
if self.detector.check_dt_compatible_value("sun20i-d1"):
return chips.D1_RISCV
if self.detector.check_dt_compatible_value("imx8mp"):
return chips.IMX8MP
if self.detector.check_dt_compatible_value("libretech,aml-s905x-cc"):
return chips.S905X
if self.detector.check_dt_compatible_value("light-lpi4a"):
return chips.TH1520
if self.detector.check_dt_compatible_value("hobot,x3"):
return chips.SUNRISE_X3
if self.detector.check_dt_compatible_value("particle,tachyon"):
return chips.QCM6490
linux_id = None
hardware = self.detector.get_cpuinfo_field("Hardware")
if hardware is None:
vendor_id = self.detector.get_cpuinfo_field("vendor_id")
if vendor_id in ("GenuineIntel", "AuthenticAMD"):
linux_id = GENERIC_X86
elif hardware in ("BCM2708", "BCM2708", "BCM2835"):
linux_id = BCM2XXX
elif "AM33XX" in hardware:
linux_id = AM33XX
elif "sun8i" in hardware:
linux_id = SUN8I
elif "ODROIDC" in hardware:
linux_id = S805
elif "ODROID-C2" in hardware:
linux_id = S905
if vendor_id == "AuthenticAMD":
model_name = self.detector.get_cpuinfo_field("model name").upper()
if "RYZEN EMBEDDED V1202B" in model_name:
linux_id = chips.RYZEN_V1202B
if "RYZEN EMBEDDED V1605B" in model_name:
linux_id = chips.RYZEN_V1605B
else:
linux_id = chips.GENERIC_X86
## print("linux_id = ", linux_id)
elif vendor_id == "GenuineIntel":
model_name = self.detector.get_cpuinfo_field("model name").upper()
## print('model_name =', model_name)
if "N3710" in model_name:
linux_id = chips.PENTIUM_N3710
if "N5105" in model_name:
linux_id = chips.CELERON_N5105
elif "X5-Z8350" in model_name:
linux_id = chips.ATOM_X5_Z8350
elif "J4105" in model_name:
linux_id = chips.ATOM_J4105
else:
linux_id = chips.GENERIC_X86
## print("linux_id = ", linux_id)
compatible = self.detector.get_device_compatible()
if compatible and "tegra" in compatible:
compats = compatible.split("\x00")
if "nvidia,tegra210" in compats:
linux_id = chips.T210
elif "nvidia,tegra186" in compats:
linux_id = chips.T186
elif "nvidia,tegra194" in compats:
linux_id = chips.T194
elif "nvidia,tegra234" in compats:
linux_id = chips.T234
if compatible and "imx8m" in compatible:
linux_id = chips.IMX8MX
if compatible and "odroid-c2" in compatible:
linux_id = chips.S905
if compatible and "amlogic" in compatible:
compatible_list = (
compatible.replace("\x00", ",").replace(" ", "").split(",")
)
if "g12a" in compatible_list:
# 'sm1' is correct for S905X3, but some kernels use 'g12a'
return chips.S905X3
if "g12b" in compatible_list:
return chips.S922X
if "sm1" in compatible_list:
return chips.S905X3
if "vim3amlogic" in compatible_list:
return chips.A311D
if compatible and "sun50i-a64" in compatible:
linux_id = chips.A64
if compatible and "sun50i-h6" in compatible:
linux_id = chips.H6
if compatible and "sun50i-h5" in compatible:
linux_id = chips.H5
if compatible and "odroid-xu4" in compatible:
linux_id = chips.EXYNOS5422
if compatible and "cvitek,cv180x" in compatible:
linux_id = chips.CV1800B
cpu_model = self.detector.get_cpuinfo_field("cpu model")
if cpu_model is not None:
if "MIPS 24Kc" in cpu_model:
linux_id = chips.MIPS24KC
elif "MIPS 24KEc" in cpu_model:
linux_id = chips.MIPS24KEC
# we still haven't identified the hardware, so
# convert it to a list and let the remaining
# conditions attempt.
if not linux_id:
hardware = [
entry.replace("\x00", "") for entry in compatible.split(",")
]
if not linux_id:
if "AM33XX" in hardware:
linux_id = chips.AM33XX
elif "DRA74X" in hardware:
linux_id = chips.DRA74X
elif "sun4i" in hardware:
linux_id = chips.A10
elif "sun7i" in hardware:
linux_id = chips.A20
elif "sun8i" in hardware:
linux_id = chips.SUN8I
elif "ODROIDC" in hardware:
linux_id = chips.S805
elif "ODROID-C2" in hardware:
linux_id = chips.S905
elif "ODROID-N2" in hardware:
linux_id = chips.S922X
elif "ODROID-C4" in hardware:
linux_id = chips.S905X3
elif "ODROID-XU4" in hardware:
linux_id = chips.EXYNOS5422
elif "KHADAS-VIM3" in hardware:
linux_id = chips.A311D
elif "SAMA5" in hardware:
linux_id = chips.SAMA5
elif "Pinebook" in hardware:
linux_id = chips.A64
elif "ASUS_TINKER_BOARD" in hardware:
linux_id = chips.RK3288
elif "Xilinx Zynq" in hardware:
compatible = self.detector.get_device_compatible()
if compatible and "xlnx,zynq-7000" in compatible:
linux_id = chips.ZYNQ7000
else:
if isinstance(hardware, str):
if hardware.upper() in chips.BCM_RANGE:
linux_id = chips.BCM2XXX
elif isinstance(hardware, list):
if {model.upper() for model in hardware} & chips.BCM_RANGE:
linux_id = chips.BCM2XXX
return linux_id
def __getattr__(self, attr):
def __getattr__(self, attr: str) -> bool:
"""
Detect whether the given attribute is the currently-detected chip. See
list of constants at the top of this module for available options.
"""
if attr == "id":
raise AttributeError() # Avoid infinite recursion
if self.id == attr:
return True
return False

View file

@ -0,0 +1,5 @@
# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""Common constants used all over the module."""

View file

@ -0,0 +1,707 @@
# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""Definition of boards and/or ids"""
# Allow for aligned constant definitions:
VISIONFIVE2 = "VISIONFIVE2"
BEAGLE_PLAY = "BEAGLE_PLAY"
BEAGLEBONE_AI64 = "BEAGLEBONE_AI64"
BEAGLEBONE = "BEAGLEBONE"
BEAGLEBONE_BLACK = "BEAGLEBONE_BLACK"
BEAGLEBONE_BLUE = "BEAGLEBONE_BLUE"
BEAGLEBONE_BLACK_WIRELESS = "BEAGLEBONE_BLACK_WIRELESS"
BEAGLEBONE_POCKETBEAGLE = "BEAGLEBONE_POCKETBEAGLE"
BEAGLEBONE_GREEN = "BEAGLEBONE_GREEN"
BEAGLEBONE_GREEN_WIRELESS = "BEAGLEBONE_GREEN_WIRELESS"
BEAGLEBONE_GREEN_GATEWAY = "BEAGLEBONE_GREEN_GATEWAY"
BEAGLEBONE_BLACK_INDUSTRIAL = "BEAGLEBONE_BLACK_INDUSTRIAL"
BEAGLEBONE_ENHANCED = "BEAGLEBONE_ENHANCED"
BEAGLEBONE_USOMIQ = "BEAGLEBONE_USOMIQ"
BEAGLEBONE_AIR = "BEAGLEBONE_AIR"
BEAGLEBONE_AI = "BEAGLEBONE_AI"
BEAGLEBONE_POCKETBONE = "BEAGLEBONE_POCKETBONE"
BEAGLEV_STARLIGHT = "BEAGLEV_STARLIGHT"
BEAGLEY_AI = "BEAGLEY_AI"
BEAGLELOGIC_STANDALONE = "BEAGLELOGIC_STANDALONE"
OSD3358_DEV_BOARD = "OSD3358_DEV_BOARD"
OSD3358_SM_RED = "OSD3358_SM_RED"
OLIMEX_LIME2 = "OLIMEX_LIME2"
FEATHER_HUZZAH = "FEATHER_HUZZAH"
FEATHER_M0_EXPRESS = "FEATHER_M0_EXPRESS"
GENERIC_LINUX_PC = "GENERIC_LINUX_PC"
PYBOARD = "PYBOARD"
NODEMCU = "NODEMCU"
RASPBERRY_PI_PICO = "RASPBERRY_PI_PICO"
GIANT_BOARD = "GIANT_BOARD"
# ASUS Tinker Boards
ASUS_TINKER_BOARD = "ASUS_TINKER_BOARD"
ASUS_TINKER_BOARD_2 = "ASUS_TINKER_BOARD_2"
ASUS_TINKER_EDGE_R = "ASUS_TINKER_EDGE_R"
# Walnut Pi boards
WALNUT_PI_1B = "WALNUT_PI_1B"
WALNUT_PI_1B_EMMC = "WALNUT_PI_1B_EMMC"
# Clockwork Pi boards
CLOCKWORK_CPI3 = "CLOCKWORK_CPI3"
# Orange Pi boards
ORANGE_PI_PC = "ORANGE_PI_PC"
ORANGE_PI_R1 = "ORANGE_PI_R1"
ORANGE_PI_ZERO = "ORANGE_PI_ZERO"
ORANGE_PI_ONE = "ORANGE_PI_ONE"
ORANGE_PI_LITE = "ORANGE_PI_LITE"
ORANGE_PI_PC_PLUS = "ORANGE_PI_PC_PLUS"
ORANGE_PI_PLUS_2E = "ORANGE_PI_PLUS_2E"
ORANGE_PI_2 = "ORANGE_PI_2"
ORANGE_PI_PC2 = "ORANGE_PI_PC2"
ORANGE_PI_ZERO_PLUS_2H5 = "ORANGE_PI_ZERO_PLUS_2H5"
ORANGE_PI_ZERO_PLUS = "ORANGE_PI_ZERO_PLUS"
ORANGE_PI_ZERO_2 = "ORANGE_PI_ZERO_2"
ORANGE_PI_ZERO_3 = "ORANGE_PI_ZERO_3"
ORANGE_PI_3 = "ORANGE_PI_3"
ORANGE_PI_3B = "ORANGE_PI_3B"
ORANGE_PI_3_LTS = "ORANGE_PI_3_LTS"
ORANGE_PI_4 = "ORANGE_PI_4"
ORANGE_PI_4_LTS = "ORANGE_PI_4_LTS"
ORANGE_PI_5 = "ORANGE_PI_5"
ORANGE_PI_5_MAX = "ORANGE_PI_5_MAX"
ORANGE_PI_5_PLUS = "ORANGE_PI_5_PLUS"
ORANGE_PI_5_PRO = "ORANGE_PI_5_PRO"
# Nano Pi boards
NANOPI_NEO_AIR = "NANOPI_NEO_AIR"
NANOPI_DUO2 = "NANOPI_DUO2"
NANOPI_NEO = "NANOPI_NEO"
NANOPI_NEO_2 = "NANOPI_NEO_2"
# Banana Pi boards
BANANA_PI_M2_ZERO = "BANANA_PI_M2_ZERO"
BANANA_PI_M2_PLUS = "BANANA_PI_M2_PLUS"
BANANA_PI_M2_BERRY = "BANANA_PI_M2_BERRY"
BANANA_PI_M4_BERRY = "BANANA_PI_M4_BERRY"
BANANA_PI_M4_ZERO = "BANANA_PI_M4_ZERO"
BANANA_PI_M5 = "BANANA_PI_M5"
BANANA_PI_F3 = "BANANA_PI_F3"
BANANA_PI_F5 = "BANANA_PI_F5"
BANANA_PI_AI2N = "BANANA_PI_AI2N"
BANANA_PI_AI2H = "BANANA_PI_AI2H"
# LeMaker boards
LEMAKER_BANANA_PRO = "LEMAKER_BANANA_PRO"
# NVIDIA Jetson boards
JETSON_TX1 = "JETSON_TX1"
JETSON_TX2 = "JETSON_TX2"
JETSON_TX2_NX = "JETSON_TX2_NX"
CLARA_AGX_XAVIER = "CLARA_AGX_XAVIER"
JETSON_XAVIER = "JETSON_XAVIER"
JETSON_AGX_ORIN = "JETSON_ORIN"
JETSON_NANO = "JETSON_NANO"
JETSON_NX = "JETSON_NX"
JETSON_ORIN_NANO = "JETSON_ORIN_NANO"
JETSON_ORIN_NX = "JETSON_ORIN_NX"
JETSON_THOR = "JETSON_THOR"
# Texas Instruments SK boards
TI_J721E_SK = "TI_J721E_SK"
# Google Coral dev board
CORAL_EDGE_TPU_DEV = "CORAL_EDGE_TPU_DEV"
CORAL_EDGE_TPU_DEV_MINI = "CORAL_EDGE_TPU_DEV_MINI"
# Xilinx PYNQ FPGA dev boards
PYNQ_Z1 = "PYNQ_Z1"
PYNQ_Z2 = "PYNQ_Z2"
# STM32 MPU boards
STM32MP157C_DK2 = "STM32MP157C_DK2"
OSD32MP1_BRK = "OSD32MP1_BRK"
OSD32MP1_RED = "OSD32MP1_RED"
STMP157_OLINUXINO_LIME2 = "STMP157_OLINUXINO_LIME2"
# Embedfire LubanCat board
LUBANCAT_IMX6ULL = "LUBANCAT_IMX6ULL"
LUBANCAT_STM32MP157 = "LUBANCAT_STM32MP157"
LUBANCAT_ZERO = "LUBANCAT_ZERO"
LUBANCAT1 = "LUBANCAT1"
LUBANCAT2 = "LUBANCAT2"
LUBANCAT4 = "LUBANCAT4"
LUBANCAT5 = "LUBANCAT5"
# Various Raspberry Pi models
RASPBERRY_PI_B_REV1 = "RASPBERRY_PI_B_REV1"
RASPBERRY_PI_B_REV2 = "RASPBERRY_PI_B_REV2"
RASPBERRY_PI_B_PLUS = "RASPBERRY_PI_B_PLUS"
RASPBERRY_PI_A = "RASPBERRY_PI_A"
RASPBERRY_PI_A_PLUS = "RASPBERRY_PI_A_PLUS"
RASPBERRY_PI_CM1 = "RASPBERRY_PI_CM1"
RASPBERRY_PI_ZERO = "RASPBERRY_PI_ZERO"
RASPBERRY_PI_ZERO_W = "RASPBERRY_PI_ZERO_W"
RASPBERRY_PI_ZERO_2_W = "RASPBERRY_PI_ZERO_2_W"
RASPBERRY_PI_2B = "RASPBERRY_PI_2B"
RASPBERRY_PI_3B = "RASPBERRY_PI_3B"
RASPBERRY_PI_3B_PLUS = "RASPBERRY_PI_3B_PLUS"
RASPBERRY_PI_CM3 = "RASPBERRY_PI_CM3"
RASPBERRY_PI_3A_PLUS = "RASPBERRY_PI_3A_PLUS"
RASPBERRY_PI_CM3_PLUS = "RASPBERRY_PI_CM3_PLUS"
RASPBERRY_PI_4B = "RASPBERRY_PI_4B"
RASPBERRY_PI_AVNET_IIOT_GW = "RASPBERY_PI_AVNET_IIOT_GW"
RASPBERRY_PI_400 = "RASPBERRY_PI_400"
RASPBERRY_PI_CM4 = "RASPBERRY_PI_CM4"
RASPBERRY_PI_CM4S = "RASPBERRY_PI_CM4S"
RASPBERRY_PI_5 = "RASPBERRY_PI_5"
RASPBERRY_PI_CM5 = "RASPBERRY_PI_CM5"
RASPBERRY_PI_500 = "RASPBERRY_PI_500"
RASPBERRY_PI_CM5_LITE = "RASPBERRY_PI_CM5_LITE"
ODROID_C1 = "ODROID_C1"
ODROID_C1_PLUS = "ODROID_C1_PLUS"
ODROID_C2 = "ODROID_C2"
ODROID_C4 = "ODROID_C4"
ODROID_H3 = "ODROID_H3"
ODROID_N2 = "ODROID_N2"
ODROID_XU4 = "ODROID_XU4"
ODROID_M1 = "ODROID_M1"
ODROID_M1S = "ODROID_M1S"
FTDI_FT232H = "FTDI_FT232H"
FTDI_FT2232H = "FTDI_FT2232H"
FTDI_FT4232H = "FTDI_FT4232H"
DRAGONBOARD_410C = "DRAGONBOARD_410C"
SIFIVE_UNLEASHED = "SIFIVE_UNLEASHED"
ALLWINER_D1 = "ALLWINER_D1"
LICHEE_RV = "LICHEE_RV"
LICHEEPI_4A = "LICHEEPI_4A"
MICROCHIP_MCP2221 = "MICROCHIP_MCP2221"
# Linkspirte Pcduino based boards
PCDUINO2 = "PCDUINO2"
PCDUINO3 = "PCDUINO3"
# Boards with u2if firmware
# https://github.com/execuc/u2if
PICO_U2IF = "PICO_U2IF"
FEATHER_U2IF = "FEATHER_U2IF"
FEATHER_CAN_U2IF = "FEATHER_CAN_U2IF"
FEATHER_EPD_U2IF = "FEATHER_EPD_U2IF"
FEATHER_RFM_U2IF = "FEATHER_RFM_U2IF"
ITSYBITSY_U2IF = "ITSYBITSY_U2IF"
MACROPAD_U2IF = "MACROPAD_U2IF"
QTPY_U2IF = "QTPY_U2IF"
QT2040_TRINKEY_U2IF = "QT2040_TRINKEY_U2IF"
KB2040_U2IF = "KB2040_U2IF"
RP2040_ONE_U2IF = "RP2040_ONE_U2IF"
RADXA_X4_U2IF = "RADXA_X4_U2IF"
BINHO_NOVA = "BINHO_NOVA"
ONION_OMEGA = "ONION_OMEGA"
ONION_OMEGA2 = "ONION_OMEGA2"
PINE64 = "PINE64"
PINEH64 = "PINEH64"
PINEBOOK = "PINEBOOK"
PINEPHONE = "PINEPHONE"
SOPINE = "SOPINE"
QUARTZ64_A = "QUARTZ64_A"
RADXA_ZERO = "RADXA_ZERO"
RADXA_ZERO3 = "RADXA_ZERO3"
RADXA_CM3 = "RADXA_CM3"
ROCK_PI_3A = "ROCK_PI_3A"
ROCK_3B = "ROCK_3B"
ROCK_PI_3C = "ROCK_PI_3C"
ROCK_PI_S = "ROCK_PI_S"
ROCK_PI_4 = "ROCK_PI_4"
ROCK_PI_4_C_PLUS = "ROCK_PI_4C+"
ROCK_PI_4_SE = "ROCK_PI_4_SE"
ROCK_PI_X = "ROCK_PI_X"
ROCK_PI_E = "ROCK_PI_E"
ROCK_PI_5 = "ROCK_PI_5"
ROCK_PI_5C = "ROCK_PI_5C"
# Vicharak Boards
VAAMAN = "VAAMAN"
AXON = "AXON"
GREATFET_ONE = "GREATFET_ONE"
# SeeedStudio boards
ODYSSEY_X86J41X5 = "ODYSSEY_X86J41X5"
# Udoo boards
UDOO_BOLT_V3 = "UDOO_BOLT_V3"
UDOO_BOLT_V8 = "UDOO_BOLT_V8"
UDOO_X86 = "UDOO_X86"
# MaaXBoard
MAAXBOARD = "MAAXBOARD"
MAAXBOARD_MINI = "MAAXBOARD_MINI"
# Shenzhen MilkV Technology boards ids
MILKV_DUO = "MILKV_DUO"
# Khadas VIM3
KHADAS_VIM3 = "KHADAS_VIM3"
_KHADAS_40_PIN_IDS = (KHADAS_VIM3,)
# Vivid Unit
VIVID_UNIT = "VIVID_UNIT"
_VIVID_UNIT_IDS = (VIVID_UNIT,)
# Luckfox Pico boards
LUCKFOX_PICO = "LUCKFOX_PICO"
LUCKFOX_PICO_MAX = "LUCKFOX_PICO_MAX"
LUCKFOX_PICO_MINI = "LUCKFOX_PICO_MINI"
LUCKFOX_PICO_PLUS = "LUCKFOX_PICO_PLUS"
# Ameridroid boards
INDIEDROID_NOVA = "INDIEDROID_NOVA"
# Horizon
RDK_X3 = "RDK_X3"
# Particle
PARTICLE_TACHYON = "PARTICLE_TACHYON"
# StarFive boards
_STARFIVE_BOARD_IDS = (VISIONFIVE2,)
# Asus Tinkerboard
_ASUS_TINKER_BOARD_IDS = (
ASUS_TINKER_BOARD,
ASUS_TINKER_BOARD_2,
ASUS_TINKER_EDGE_R,
)
# WalnutPi
_WALNUT_PI_IDS = (
WALNUT_PI_1B,
WALNUT_PI_1B_EMMC,
)
# STM32MP1
_STM32MP1_IDS = (
STM32MP157C_DK2,
LUBANCAT_STM32MP157,
OSD32MP1_BRK,
OSD32MP1_RED,
STMP157_OLINUXINO_LIME2,
)
# OrangePI
_ORANGE_PI_IDS = (
ORANGE_PI_PC,
ORANGE_PI_R1,
ORANGE_PI_ZERO,
ORANGE_PI_ONE,
ORANGE_PI_LITE,
ORANGE_PI_PC_PLUS,
ORANGE_PI_PLUS_2E,
ORANGE_PI_2,
ORANGE_PI_PC2,
ORANGE_PI_ZERO_PLUS_2H5,
ORANGE_PI_ZERO_PLUS,
ORANGE_PI_ZERO_2,
ORANGE_PI_3,
ORANGE_PI_3B,
ORANGE_PI_3_LTS,
ORANGE_PI_4,
ORANGE_PI_4_LTS,
ORANGE_PI_5,
ORANGE_PI_5_PLUS,
ORANGE_PI_5_PRO,
)
# NanoPi
_NANOPI_IDS = (
NANOPI_NEO_AIR,
NANOPI_DUO2,
NANOPI_NEO,
NANOPI_NEO_2,
)
# BananaPI
_BANANA_PI_IDS = (
BANANA_PI_M2_ZERO,
BANANA_PI_M2_PLUS,
BANANA_PI_M2_BERRY,
BANANA_PI_M4_BERRY,
BANANA_PI_M4_ZERO,
BANANA_PI_M5,
BANANA_PI_F3,
BANANA_PI_F5,
BANANA_PI_AI2N,
BANANA_PI_AI2H,
)
# LeMaker
_LEMAKER_IDS = (LEMAKER_BANANA_PRO,)
# LubanCat
_LUBANCAT_IDS = (
LUBANCAT_IMX6ULL,
LUBANCAT_STM32MP157,
LUBANCAT_ZERO,
LUBANCAT1,
LUBANCAT2,
LUBANCAT4,
LUBANCAT5,
)
# Coral boards
_CORAL_IDS = (CORAL_EDGE_TPU_DEV, CORAL_EDGE_TPU_DEV_MINI)
_PYNQ_IDS = (PYNQ_Z1, PYNQ_Z2)
_JETSON_IDS = (
(JETSON_TX1, ("nvidia,p2371-2180", "nvidia,jetson-cv")),
(
JETSON_TX2,
(
"nvidia,p2771-0000",
"nvidia,p2771-0888",
"nvidia,p3489-0000",
"nvidia,lightning",
"nvidia,quill",
"nvidia,storm",
),
),
(JETSON_TX2_NX, ("nvidia,p3509-0000+p3636-0001",)),
(CLARA_AGX_XAVIER, ("nvidia,e3900-0000+p2888-0004",)),
(
JETSON_XAVIER,
(
"nvidia,p2972-0000",
"nvidia,p2972-0006",
"nvidia,jetson-xavier",
"nvidia,jetson-xavier-industrial",
"nvidia,galen-industrial",
),
),
(JETSON_NANO, ("nvidia,p3450-0000", "nvidia,p3450-0002", "nvidia,jetson-nano")),
(
JETSON_NX,
(
"nvidia,p3509-0000+p3668-0000",
"nvidia,p3509-0000+p3668-0001",
"nvidia,p3509-0000-a00+p3668-0000-a01",
"nvidia,p3509-0000-a00+p3668-0001-a01",
"nvidia,p3449-0000+p3668-0000",
"nvidia,p3449-0000+p3668-0001",
"nvidia,p3449-0000+p3668-0003",
),
),
(
JETSON_AGX_ORIN,
(
"nvidia,p3737-0000+p3701-0000",
"nvidia,p3737-0000+p3701-0004",
"nvidia,p3737-0000+p3701-0008",
"nvidia,p3737-0000+p3701-0005",
"nvidia,p3737-0000+p3701-0001",
),
),
(
JETSON_ORIN_NX,
(
"nvidia,p3509-0000+p3767-0000",
"nvidia,p3768-0000+p3767-0000",
"nvidia,p3509-0000+p3767-0001",
"nvidia,p3768-0000+p3767-0001",
),
),
(
JETSON_ORIN_NANO,
(
"nvidia,p3509-0000+p3767-0003",
"nvidia,p3768-0000+p3767-0003",
"nvidia,p3509-0000+p3767-0004",
"nvidia,p3768-0000+p3767-0004",
"nvidia,p3509-0000+p3767-0005",
"nvidia,p3768-0000+p3767-0005",
"nvidia,p3768-0000+p3767-0005-super",
),
),
(
JETSON_THOR,
(
"nvidia,p3971-0050+p3834-0005",
"nvidia,p3971-0080+p3834-0008",
"nvidia,p3971-0089+p3834-0008",
),
),
)
_TI_SK_BOARD_IDS = ((TI_J721E_SK, ("ti,j721e-sk", "ti,j721e")),)
# Raspberry Pi boards
_RASPBERRY_PI_40_PIN_IDS = (
RASPBERRY_PI_B_PLUS,
RASPBERRY_PI_A_PLUS,
RASPBERRY_PI_ZERO,
RASPBERRY_PI_ZERO_W,
RASPBERRY_PI_ZERO_2_W,
RASPBERRY_PI_2B,
RASPBERRY_PI_3B,
RASPBERRY_PI_3B_PLUS,
RASPBERRY_PI_3A_PLUS,
RASPBERRY_PI_4B,
RASPBERRY_PI_AVNET_IIOT_GW,
RASPBERRY_PI_400,
RASPBERRY_PI_5,
RASPBERRY_PI_500,
)
_RASPBERRY_PI_CM_IDS = (
RASPBERRY_PI_CM1,
RASPBERRY_PI_CM3,
RASPBERRY_PI_CM3_PLUS,
RASPBERRY_PI_CM4,
RASPBERRY_PI_CM4S,
RASPBERRY_PI_CM5,
RASPBERRY_PI_CM5_LITE,
)
# Pi 4 boards have additional peripherals
_RASPBERRY_PI_4_IDS = (
RASPBERRY_PI_4B,
RASPBERRY_PI_CM4,
RASPBERRY_PI_CM4S,
RASPBERRY_PI_400,
)
# Pi 5 boards work differently
_RASPBERRY_PI_5_IDS = (
RASPBERRY_PI_5,
RASPBERRY_PI_CM5,
RASPBERRY_PI_500,
RASPBERRY_PI_CM5_LITE,
)
_PI_MODELS = {
0x00: RASPBERRY_PI_A,
0x01: {
1.0: RASPBERRY_PI_B_REV1,
2.0: RASPBERRY_PI_B_REV2,
},
0x02: RASPBERRY_PI_A_PLUS,
0x03: RASPBERRY_PI_B_PLUS,
0x04: RASPBERRY_PI_2B,
0x06: RASPBERRY_PI_CM1,
0x08: RASPBERRY_PI_3B,
0x09: RASPBERRY_PI_ZERO,
0x0A: RASPBERRY_PI_CM3,
0x0B: RASPBERRY_PI_AVNET_IIOT_GW,
0x0C: RASPBERRY_PI_ZERO_W,
0x0D: RASPBERRY_PI_3B_PLUS,
0x0E: RASPBERRY_PI_3A_PLUS,
0x10: RASPBERRY_PI_CM3_PLUS,
0x11: RASPBERRY_PI_4B,
0x12: RASPBERRY_PI_ZERO_2_W,
0x13: RASPBERRY_PI_400,
0x14: RASPBERRY_PI_CM4,
0x15: RASPBERRY_PI_CM4S,
0x17: RASPBERRY_PI_5,
0x18: RASPBERRY_PI_CM5,
0x19: RASPBERRY_PI_500,
0x1A: RASPBERRY_PI_CM5_LITE,
}
# ODROID boards
_ODROID_40_PIN_IDS = (
ODROID_C1,
ODROID_C1_PLUS,
ODROID_C2,
ODROID_C4,
ODROID_N2,
ODROID_XU4,
ODROID_M1,
ODROID_M1S,
)
_ODROID_MINI_PC_IDS = (ODROID_H3,)
_BEAGLEBONE_IDS = (
BEAGLEY_AI,
BEAGLE_PLAY,
BEAGLEBONE_AI64,
BEAGLEBONE,
BEAGLEBONE_BLACK,
BEAGLEBONE_BLUE,
BEAGLEBONE_BLACK_WIRELESS,
BEAGLEBONE_POCKETBEAGLE,
BEAGLEBONE_GREEN,
BEAGLEBONE_GREEN_WIRELESS,
BEAGLEBONE_GREEN_GATEWAY,
BEAGLEBONE_BLACK_INDUSTRIAL,
BEAGLEBONE_ENHANCED,
BEAGLEBONE_USOMIQ,
BEAGLEBONE_AIR,
BEAGLEBONE_AI,
BEAGLEBONE_POCKETBONE,
BEAGLELOGIC_STANDALONE,
BEAGLEV_STARLIGHT,
OSD3358_DEV_BOARD,
OSD3358_SM_RED,
)
_LINARO_96BOARDS_IDS = (DRAGONBOARD_410C,)
_SIFIVE_IDS = (SIFIVE_UNLEASHED,)
_OLIMEX_IDS = (OLIMEX_LIME2,)
# BeagleBone eeprom board ids from:
# https://github.com/beagleboard/image-builder
# Thanks to zmatt on freenode #beagle for pointers.
_BEAGLEBONE_BOARD_IDS = {
BEAGLE_PLAY: ("A0", "7.BEAGLE"),
BEAGLEBONE_AI64: ("B0", "7.BBONEA"),
# Original bone/white:
BEAGLEBONE: (
("A3", "A335BONE00A3"),
("A4", "A335BONE00A4"),
("A5", "A335BONE00A5"),
("A6", "A335BONE00A6"),
("A6A", "A335BONE0A6A"),
("A6B", "A335BONE0A6B"),
("B", "A335BONE000B"),
),
BEAGLEBONE_BLACK: (
("A5", "A335BNLT00A5"),
("A5A", "A335BNLT0A5A"),
("A5B", "A335BNLT0A5B"),
("A5C", "A335BNLT0A5C"),
("A6", "A335BNLT00A6"),
("A6A", "A335BNLT0A6A"),
("B", "A335BNLT000B"),
("C", "A335BNLT000C"),
("C", "A335BNLT00C0"),
),
BEAGLEBONE_BLUE: (("A2", "A335BNLTBLA2"),),
BEAGLEBONE_BLACK_WIRELESS: (("A5", "A335BNLTBWA5"),),
BEAGLEBONE_POCKETBEAGLE: (("A2", "A335PBGL00A2"),),
BEAGLEBONE_GREEN: (("1A", "A335BNLT...."), ("UNKNOWN", "A335BNLTBBG1")),
BEAGLEBONE_GREEN_WIRELESS: (("W1A", "A335BNLTGW1A"),),
BEAGLEBONE_GREEN_GATEWAY: (("GA1", "A335BNLTGG1A"),),
BEAGLEBONE_BLACK_INDUSTRIAL: (
("A0", "A335BNLTAIA0"), # Arrow
("A0", "A335BNLTEIA0"), # Element14
),
BEAGLEBONE_ENHANCED: (("A", "A335BNLTSE0A"),),
BEAGLEBONE_USOMIQ: (("6", "A335BNLTME06"),),
BEAGLEBONE_AIR: (("A0", "A335BNLTNAD0"),),
BEAGLEBONE_POCKETBONE: (("0", "A335BNLTBP00"),),
OSD3358_DEV_BOARD: (("0.1", "A335BNLTGH01"),),
OSD3358_SM_RED: (("0", "A335BNLTOS00"),),
BEAGLELOGIC_STANDALONE: (("A", "A335BLGC000A"),),
}
# Onion omega boards
_ONION_OMEGA_BOARD_IDS = (ONION_OMEGA, ONION_OMEGA2)
# Pine64 boards and devices
_PINE64_DEV_IDS = (PINE64, PINEH64, PINEBOOK, PINEPHONE, SOPINE, QUARTZ64_A)
# Pcduino boards
_PCDUINO_DEV_IDS = (PCDUINO2, PCDUINO3)
# RockPi boards and devices
_ROCK_PI_IDS = (
ROCK_PI_S,
ROCK_PI_4,
ROCK_PI_4_C_PLUS,
ROCK_PI_4_SE,
ROCK_PI_X,
ROCK_PI_E,
RADXA_ZERO,
RADXA_ZERO3,
ROCK_PI_5,
ROCK_PI_5C,
RADXA_CM3,
ROCK_PI_3A,
ROCK_3B,
ROCK_PI_3C,
)
# Vicharak Boards
_VICHARAK_BOARD_IDS = (VAAMAN, AXON)
# UDOO
_UDOO_BOARD_IDS = {UDOO_BOLT_V8: ("SC40-2000-0000-C0|C",), UDOO_X86: ("dummy",)}
# SeeedStudio boards
_SEEED_BOARD_IDS = (ODYSSEY_X86J41X5,)
# MaaXBoard boards
_MAAXBOARD_IDS = ("MAAXBOARD", "MAAXBOARD_MINI")
# Lichee RISC-V boards
_LICHEE_RISCV_IDS = (LICHEE_RV, LICHEEPI_4A)
# Siemens Simatic IOT2000 Gateways
SIEMENS_SIMATIC_IOT2050_ADV = "SIEMENS_SIMATIC_IOT2050_ADVANCED"
SIEMENS_SIMATIC_IOT2050_BASIC = "SIEMENS_SIMATIC_IOT2050_BASIC"
# Siemens Simatic IOT2000 Gateways
_SIEMENS_SIMATIC_IOT2000_IDS = (
SIEMENS_SIMATIC_IOT2050_ADV,
SIEMENS_SIMATIC_IOT2050_BASIC,
)
# Libre Computer Boards
AML_S905X_CC = "AML-S905X-CC"
ROC_RK3328_CC = "ROC-RK3328-CC"
# Libre Computer Boards
_LIBRE_COMPUTER_IDS = (
AML_S905X_CC,
ROC_RK3328_CC,
)
# NXP System on Module Computer boards
NXP_IMX8MPLUS_SOM = "NXP_IMX8MPLUS_SOM"
_NXP_SOM_IDS = (NXP_IMX8MPLUS_SOM,)
# Repka-Pi boards
REPKA_PI_3_H5 = "REPKA_PI_3_H5"
REPKA_PI_4_H6 = "REPKA_PI_4_H6"
# Repka-Pi
_REPKA_PI_IDS = (
REPKA_PI_3_H5,
REPKA_PI_4_H6,
)
_MILKV_IDS_ = (MILKV_DUO,)
# Luckfox
_LUCKFOX_IDS = (
LUCKFOX_PICO,
LUCKFOX_PICO_MAX,
LUCKFOX_PICO_MINI,
LUCKFOX_PICO_PLUS,
)
# Horizon
_HORIZON_IDS = (RDK_X3,)
_AMERIDROID_IDS = (INDIEDROID_NOVA,)
# Particle
_PARTICLE_IDS = (PARTICLE_TACHYON,)
# Agnostic board
OS_AGNOSTIC_BOARD = "OS_AGNOSTIC_BOARD"

View file

@ -0,0 +1,94 @@
# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""Definition of chips."""
A311D = "A311D"
OS_AGNOSTIC = "OS_AGNOSTIC"
AM33XX = "AM33XX"
AM625X = "AM625X"
AM65XX = "AM65XX"
AM67A = "AM67A"
DRA74X = "DRA74X"
TDA4VM = "TDA4VM"
IMX6ULL = "IMX6ULL"
IMX8MX = "IMX8MX"
IMX8MP = "IMX8MP"
BCM2XXX = "BCM2XXX"
ESP8266 = "ESP8266"
EXYNOS5422 = "EXYNOS5422"
RYZEN_V1202B = "RYZEN_V1202B"
RYZEN_V1605B = "RYZEN_V1605B"
SAMD21 = "SAMD21"
SUN4I = "SUN4I"
SUN7I = "SUN7I"
SUN8I = "SUN8I"
S805 = "S805"
S905 = "S905"
S905X = "S905X"
S905X3 = "S905X3"
S905Y2 = "S905Y2"
S922X = "S922X"
SAMA5 = "SAMA5"
T210 = "T210"
T186 = "T186"
T194 = "T194"
T234 = "T234"
APQ8016 = "APQ8016"
GENERIC_X86 = "GENERIC_X86"
FT232H = "FT232H"
FT2232H = "FT2232H"
FT4232H = "FT4232H"
HFU540 = "HFU540"
C906 = "C906"
JH71X0 = "JH71X0"
JH7110 = "JH7110"
MCP2221 = "MCP2221"
BINHO = "BINHO"
MIPS24KC = "MIPS24KC"
MIPS24KEC = "MIPS24KEC"
ZYNQ7000 = "ZYNQ7000"
A10 = "A10"
A20 = "A20"
A64 = "A64"
H6 = "H6"
A33 = "A33"
H5 = "H5"
H3 = "H3"
H616 = "H616"
H618 = "H618"
T527 = "T527"
RK3308 = "RK3308"
RK3399 = "RK3399"
RK3399_T = "RK3399_T"
RK3399PRO = "RK3399PRO"
RK3328 = "RK3328"
LPC4330 = "LPC4330"
RK3288 = "RK3288"
RK3566 = "RK3566"
RK3568 = "RK3568"
RK3588 = "RK3588"
RK3588S = "RK3588S"
RV1103 = "RV1103"
RV1106 = "RV1106"
PENTIUM_N3710 = "PENTIUM_N3710" # SOC Braswell core
CELERON_N5105 = "CELERON_N5105"
STM32F405 = "STM32F405"
RP2040 = "RP2040"
STM32MP157 = "STM32MP157"
STM32MP157DAA1 = "STM32MP157DAA1"
MT8167 = "MT8167"
ATOM_X5_Z8350 = "X5-Z8350"
RP2040_U2IF = "RP2040_U2IF"
D1_RISCV = "D1_RISCV"
ATOM_J4105 = "ATOM_J4105"
TH1520 = "TH1520"
K1 = "K1"
RZV2N = "RZV2N"
RZV2H = "RZV2H"
SUNRISE_X3 = "SUNRISE_X3"
QCM6490 = "QCM6490"
BCM_RANGE = {"BCM2708", "BCM2709", "BCM2711", "BCM2712", "BCM2835", "BCM2837"}
CV1800B = "CV1800B"

View file

@ -0,0 +1,306 @@
# SPDX-FileCopyrightText: 2023 Melissa LeBlanc-Williams for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
`adafruit_platformdetect.revcodes`
================================================================================
Class to help with Raspberry Pi Rev Codes
* Author(s): Melissa LeBlanc-Williams
Implementation Notes
--------------------
**Software and Dependencies:**
* Linux and Python 3.7 or Higher
Data values from https://github.com/raspberrypi/documentation/blob/develop/
documentation/asciidoc/computers/raspberry-pi/revision-codes.adoc#new-style-revision-codes
"""
NEW_OVERVOLTAGE = (
"Overvoltage allowed",
"Overvoltage disallowed",
)
NEW_OTP_PROGRAM = (
"OTP programming is allowed",
"OTP programming is disallowed",
)
NEW_OTP_READ = (
"OTP reading is allowed",
"OTP reading is disallowed",
)
NEW_WARRANTY_BIT = (
"Warranty is intact",
"Warranty has been voided by overclocking",
)
NEW_REV_STYLE = (
"Old-style revision",
"New-style revision",
)
NEW_MEMORY_SIZE = (
"256MB",
"512MB",
"1GB",
"2GB",
"4GB",
"8GB",
)
NEW_MANUFACTURER = (
"Sony UK",
"Egoman",
"Embest",
"Sony Japan",
"Embest",
"Stadium",
)
NEW_PROCESSOR = (
"BCM2835",
"BCM2836",
"BCM2837",
"BCM2711",
"BCM2712",
)
PI_TYPE = {
0x00: "A",
0x01: "B",
0x02: "A+",
0x03: "B+",
0x04: "2B",
0x05: "Alpha (early prototype)",
0x06: "CM1",
0x08: "3B",
0x09: "Zero",
0x0A: "CM3",
0x0B: "Custom",
0x0C: "Zero W",
0x0D: "3B+",
0x0E: "3A+",
0x0F: "Internal use only",
0x10: "CM3+",
0x11: "4B",
0x12: "Zero 2 W",
0x13: "400",
0x14: "CM4",
0x15: "CM4S",
0x17: "5",
0x18: "CM5",
0x19: "500",
0x1A: "CM5 Lite",
}
OLD_MANUFACTURER = (
"Sony UK",
"Egoman",
"Embest",
"Qisda",
)
OLD_MEMORY_SIZE = ("256MB", "512MB", "256MB/512MB")
NEW_REV_STRUCTURE = {
"overvoltage": (31, 1, NEW_OVERVOLTAGE),
"otp_program": (30, 1, NEW_OTP_PROGRAM),
"otp_read": (29, 1, NEW_OTP_READ),
"warranty": (25, 1, NEW_WARRANTY_BIT),
"rev_style": (23, 1, NEW_REV_STYLE),
"memory_size": (20, 3, NEW_MEMORY_SIZE),
"manufacturer": (16, 4, NEW_MANUFACTURER),
"processor": (12, 4, NEW_PROCESSOR),
"type": (4, 8, PI_TYPE),
"revision": (0, 4, int),
}
OLD_REV_STRUCTURE = {
"type": (0, PI_TYPE),
"revision": (1, float),
"memory_size": (2, OLD_MEMORY_SIZE),
"manufacturer": (3, OLD_MANUFACTURER),
}
OLD_REV_EXTRA_PROPS = {
"warranty": (24, 1, NEW_WARRANTY_BIT),
}
OLD_REV_LUT = {
0x02: (1, 1.0, 0, 1),
0x03: (1, 1.0, 0, 1),
0x04: (1, 2.0, 0, 0),
0x05: (1, 2.0, 0, 3),
0x06: (1, 2.0, 0, 1),
0x07: (0, 2.0, 0, 1),
0x08: (0, 2.0, 0, 0),
0x09: (0, 2.0, 0, 3),
0x0D: (1, 2.0, 1, 1),
0x0E: (1, 2.0, 1, 0),
0x0F: (1, 2.0, 1, 1),
0x10: (3, 1.2, 1, 0),
0x11: (6, 1.0, 1, 0),
0x12: (2, 1.1, 0, 0),
0x13: (3, 1.2, 1, 2),
0x14: (6, 1.0, 1, 2),
0x15: (2, 1.1, 2, 2),
}
class PiDecoder:
"""Raspberry Pi Revision Code Decoder"""
def __init__(self, rev_code):
try:
self.rev_code = int(rev_code, 16) & 0xFFFFFFFF
except ValueError:
print("Invalid revision code. It should be a hexadecimal value.")
def is_valid_code(self):
"""Quickly check the validity of a code"""
if self.is_new_format():
for code_format in NEW_REV_STRUCTURE.values():
lower_bit, bit_size, values = code_format
prop_value = (self.rev_code >> lower_bit) & ((1 << bit_size) - 1)
if not self._valid_value(prop_value, values):
return False
else:
if (
self.rev_code & 0xFFFF
) not in OLD_REV_LUT.keys(): # pylint: disable=consider-iterating-dictionary
return False
for code_format in OLD_REV_STRUCTURE.values():
index, values = code_format
code_format = OLD_REV_LUT[self.rev_code & 0xFFFF]
if index >= len(code_format):
return False
if not self._valid_value(code_format[index], values):
return False
return True
def _get_rev_prop_value(self, name, structure=None, raw=False):
if structure is None:
structure = NEW_REV_STRUCTURE
if name not in structure.keys():
raise ValueError(f"Unknown property {name}")
lower_bit, bit_size, values = structure[name]
prop_value = self._get_bits_value(lower_bit, bit_size)
if not self._valid_value(prop_value, values):
raise ValueError(f"Invalid value {prop_value} for property {name}")
if raw:
return prop_value
return self._format_value(prop_value, values)
def _get_bits_value(self, lower_bit, bit_size):
return (self.rev_code >> lower_bit) & ((1 << bit_size) - 1)
def _get_old_rev_prop_value(self, name, raw=False):
if (
name
not in OLD_REV_STRUCTURE.keys() # pylint: disable=consider-iterating-dictionary
):
raise ValueError(f"Unknown property {name}")
index, values = OLD_REV_STRUCTURE[name]
data = OLD_REV_LUT[self.rev_code & 0xFFFF]
if index >= len(data):
raise IndexError(f"Index {index} out of range for property {name}")
if not self._valid_value(data[index], values):
raise ValueError(f"Invalid value {data[index]} for property {name}")
if raw:
return data[index]
return self._format_value(data[index], values)
@staticmethod
def _format_value(value, valid_values):
if valid_values is float or valid_values is int:
return valid_values(value)
return valid_values[value]
@staticmethod
def _valid_value(value, valid_values):
if valid_values is float or valid_values is int:
return isinstance(value, valid_values)
if isinstance(valid_values, (tuple, list)) and 0 <= value < len(valid_values):
return True
if isinstance(valid_values, dict) and value in valid_values.keys():
return True
return False
def _get_property(self, name, raw=False):
if name not in NEW_REV_STRUCTURE:
raise ValueError(f"Unknown property {name}")
if self.is_new_format():
return self._get_rev_prop_value(name, raw=raw)
if name in OLD_REV_EXTRA_PROPS:
return self._get_rev_prop_value(
name, structure=OLD_REV_EXTRA_PROPS, raw=raw
)
return self._get_old_rev_prop_value(name, raw=raw)
def is_new_format(self):
"""Check if the code is in the new format"""
return self._get_rev_prop_value("rev_style", raw=True) == 1
@property
def overvoltage(self):
"""Overvoltage allowed/disallowed"""
return self._get_property("overvoltage")
@property
def warranty_bit(self):
"""Warranty bit"""
return self._get_property("warranty")
@property
def otp_program(self):
"""OTP programming allowed/disallowed"""
return self._get_property("otp_program")
@property
def otp_read(self):
"""OTP reading allowed/disallowed"""
return self._get_property("otp_read")
@property
def rev_style(self):
"""Revision Code style"""
# Force new style for Rev Style
return self._get_rev_prop_value("rev_style")
@property
def memory_size(self):
"""Memory size"""
return self._get_property("memory_size")
@property
def manufacturer(self):
"""Manufacturer"""
return self._get_property("manufacturer")
@property
def processor(self):
"""Processor"""
return self._get_property("processor")
@property
def type(self):
"""Specific Model"""
return self._get_property("type")
@property
def type_raw(self):
"""Raw Value of Specific Model"""
return self._get_property("type", raw=True)
@property
def revision(self):
"""Revision Number"""
return self._get_property("revision")

View file

@ -1,20 +1,127 @@
#!/usr/bin/env python3
# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
`bin.detect`
================================================================================
Board detection and determination script
* Author(s): Melissa LeBlanc-Williams
Implementation Notes
--------------------
**Software and Dependencies:**
* Linux and Python 3.7 or Higher
"""
import adafruit_platformdetect
detector = adafruit_platformdetect.Detector()
print("Board Detection Test")
print()
print("Check that the Chip and Board IDs match your board and that this it is")
print("correctly detecting whether or not it is a Linux board.")
print()
print("Chip id: ", detector.chip.id)
print("Board id: ", detector.board.id)
print("Is this a 96Boards board?", detector.board.LINARO_96BOARDS)
print("Is this a Pi 3B+?", detector.board.RASPBERRY_PI_3B_PLUS)
print("Is this a 40-pin Raspberry Pi?", detector.board.any_raspberry_pi_40_pin)
print("Is this a BBB?", detector.board.BEAGLEBONE_BLACK)
print("Is this an Orange Pi PC?", detector.board.ORANGE_PI_PC)
print()
print("Linux Detection")
print("---------------")
print("Is this an embedded Linux system?", detector.board.any_embedded_linux)
print("Is this a generic Linux PC?", detector.board.GENERIC_LINUX_PC)
print()
print("Raspberry Pi Boards")
print("-------------------")
if detector.board.any_raspberry_pi:
print("Raspberry Pi detected.")
print("Is this a Pi 3B+?", detector.board.RASPBERRY_PI_3B_PLUS)
print("Is this a Pi 4B?", detector.board.RASPBERRY_PI_4B)
print("Is this a 40-pin Raspberry Pi?", detector.board.any_raspberry_pi_40_pin)
print("Is this a Raspberry Pi Compute Module?", detector.board.any_raspberry_pi_cm)
print()
print("Other Boards")
print("-------------------")
print(
"Is this a Siemens Simatic IOT2000 Gateway?",
detector.board.any_siemens_simatic_iot2000,
)
print("Is this a 96boards board?", detector.board.any_96boards)
print("Is this a BeagleBone board?", detector.board.any_beaglebone)
print("Is this a Giant board?", detector.board.any_giant_board)
print("Is this a Coral Dev board?", detector.board.any_coral_board)
print("Is this a MaaXBoard?", detector.board.any_maaxboard)
print("Is this a SiFive board? ", detector.board.any_sifive_board)
print("Is this a PYNQ board?", detector.board.any_pynq_board)
print("Is this a Rock Pi board?", detector.board.any_rock_pi_board)
print("Is this a NanoPi board?", detector.board.any_nanopi)
print("Is this a Khadas VIM3 board?", detector.board.khadas_vim3_40_pin)
print("Is this a Clockwork Pi board?", detector.board.any_clockwork_pi_board)
print("Is this a Seeed Board?", detector.board.any_seeed_board)
print("Is this a UDOO board?", detector.board.any_udoo_board)
print("Is this an ASUS Tinker board?", detector.board.any_asus_tinker_board)
print("Is this an STM32MP1 board?", detector.board.any_stm32mp1)
print("Is this a MilkV board?", detector.board.any_milkv_board)
print("Is this a Luckfox Pico board?", detector.board.any_luckfox_pico_board)
print("Is this a generic Linux PC?", detector.board.generic_linux)
print(
"Is this an OS environment variable special case?", detector.board.os_environ_board
)
if detector.board.any_bananapi:
print("Bananapi board detected.")
if detector.board.any_jetson_board:
print("Jetson platform detected.")
if detector.board.any_tisk_board:
print("TI platform detected.")
if detector.board.any_pynq_board:
print("PYNQ platform detected.")
if detector.board.any_orange_pi:
print("Orange Pi detected.")
if detector.board.any_lemaker:
print("LeMaker board detected.")
if detector.board.any_odroid_40_pin:
print("Odroid detected.")
if detector.board.any_onion_omega_board:
print("Onion Omega detected.")
if detector.board.any_pine64_board:
print("Pine64 device detected.")
if detector.board.any_rock_pi_board:
print("Rock Pi device detected.")
if detector.board.any_clockwork_pi_board:
print("Clockwork Pi device detected.")
if detector.board.any_asus_tinker_board:
print("ASUS Tinker Board device detected.")
if detector.board.any_coral_board:
print("Coral device detected.")
if detector.board.any_lubancat:
print("LubanCat detected.")
if detector.board.any_siemens_simatic_iot2000:
print("Siemens Simatic IOT2000 Gateway detected.")
if detector.board.any_nxp_navq_board:
print("NXP NavQ board detected.")
if detector.board.any_walnutpi:
print("Walnut Pi detected.")

91
bin/rpi_info.py Normal file
View file

@ -0,0 +1,91 @@
#!/usr/bin/env python3
# SPDX-FileCopyrightText: 2023 Melissa LeBlanc-Williams for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
`bin.rpi_info`
================================================================================
Interactive mode will prompt for the revision code
Otherwise it will be detected automatically
* Author(s): Melissa LeBlanc-Williams
Implementation Notes
--------------------
**Software and Dependencies:**
* Linux and Python 3.7 or Higher
"""
import sys
import argparse
import adafruit_platformdetect
from adafruit_platformdetect.revcodes import PiDecoder
detector = adafruit_platformdetect.Detector()
parser = argparse.ArgumentParser()
def print_property(label, value):
"""Format and print a property"""
print(f"{label}: {value}")
def main(interactive):
"""Run the program"""
pi_rev_code = detector.board._pi_rev_code() # pylint: disable=protected-access
if pi_rev_code is None:
print("Raspberry Pi not detected. Using interactive mode")
if pi_rev_code is None or interactive:
pi_rev_code = input(
"Enter a Raspberry Pi revision code (e.g. d03114 or 000f): "
)
print_property("Revision Code", pi_rev_code)
try:
decoder = PiDecoder(pi_rev_code)
except ValueError:
print("Invalid revision code. It should be a hexadecimal value.")
sys.exit(1)
if not decoder.is_valid_code():
print(
"Code is invalid. This rev code includes at least one "
"value that is outside of the expected range."
)
sys.exit(1)
if decoder.is_new_format():
print_property("Overvoltage", decoder.overvoltage)
print_property("OTP Program", decoder.otp_program)
print_property("OTP Read", decoder.otp_read)
print_property("Warranty bit", decoder.warranty_bit)
print_property("New flag", decoder.rev_style)
print_property("Memory size", decoder.memory_size)
print_property("Manufacturer", decoder.manufacturer)
print_property("Processor", decoder.processor)
print_property("Type", decoder.type)
print_property("Revision", decoder.revision)
else:
print_property("Warranty bit", decoder.warranty_bit)
print_property("Model", decoder.type)
print_property("Revision", decoder.revision)
print_property("RAM", decoder.memory_size)
print_property("Manufacturer", decoder.manufacturer)
# Main function
if __name__ == "__main__":
parser.add_argument(
"-i", "--interactive", help="Interactive Mode", action="store_true"
)
args = parser.parse_args()
main(args.interactive)

BIN
docs/_static/favicon.ico vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

3
docs/_static/favicon.ico.license vendored Normal file
View file

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2018 Phillip Torrone for Adafruit Industries
SPDX-License-Identifier: CC-BY-4.0

11
docs/api.rst Normal file
View file

@ -0,0 +1,11 @@
.. If you created a package, create one automodule per module in the package.
.. If your library file(s) are nested in a directory (e.g. /adafruit_foo/foo.py)
.. use this format as the module name: "adafruit_foo.foo"
.. automodule:: adafruit_platformdetect.board
:members:
.. automodule:: adafruit_platformdetect.chip
:members:

3
docs/api.rst.license Normal file
View file

@ -0,0 +1,3 @@
# SPDX-FileCopyrightText: 2020 ladyada for Adafruit Industries
#
# SPDX-License-Identifier: MIT

View file

@ -1,3 +1,7 @@
SPDX-FileCopyrightText: 2009-2014 Robert Nelson <robertcnelson@gmail.com>
SPDX-License-Identifier: MIT
From https://github.com/beagleboard/image-builder
The MIT License (MIT)

125
docs/conf.py Executable file → Normal file
View file

@ -1,8 +1,13 @@
# -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
#
# SPDX-License-Identifier: MIT
import os
import sys
sys.path.insert(0, os.path.abspath('../adafruit_platformdetect'))
sys.path.insert(0, os.path.abspath(".."))
# -- General configuration ------------------------------------------------
@ -10,9 +15,10 @@ sys.path.insert(0, os.path.abspath('../adafruit_platformdetect'))
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinx.ext.napoleon",
"sphinx.ext.todo",
]
# Uncomment the below if you use native CircuitPython modules such as
@ -20,42 +26,50 @@ extensions = [
# autodoc module docs will fail to generate with a warning.
autodoc_mock_imports = ["machine"]
intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),
'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)}
intersphinx_mapping = {
"python": ("https://docs.python.org/3.7", None),
"CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None),
}
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
templates_path = ["_templates"]
source_suffix = '.rst'
source_suffix = ".rst"
# The master toctree document.
master_doc = 'index'
master_doc = "index"
# General information about the project.
project = u'Adafruit Blinka Library'
copyright = u'2017 Adafruit Industries'
author = u'Brennen Bearnes'
project = "Adafruit PlatformDetect Library"
copyright = "2017 Adafruit Industries"
author = "Brennen Bearnes"
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = u'1.0.0'
version = "1.0.0"
# The full version, including alpha/beta/rc tags.
release = u'1.0.0'
release = "1.0.0"
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = "en"
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.env', 'CODE_OF_CONDUCT.md']
exclude_patterns = [
"_build",
"Thumbs.db",
".DS_Store",
".env",
"CODE_OF_CONDUCT.md",
]
# The reST default role (used for this markup: `text`) to use for all
# documents.
@ -67,7 +81,7 @@ default_role = "any"
add_function_parentheses = True
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
pygments_style = "sphinx"
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False
@ -75,59 +89,65 @@ todo_include_todos = False
# If this is True, todo emits a warning for each TODO entries. The default is False.
todo_emit_warnings = True
napoleon_numpy_docstring = False
# -- Options for HTML output ----------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
if not on_rtd: # only import and set the theme if we're building docs locally
try:
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), '.']
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), "."]
except:
html_theme = 'default'
html_theme_path = ['.']
html_theme = "default"
html_theme_path = ["."]
else:
html_theme_path = ['.']
html_theme_path = ["."]
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = ["_static"]
# The name of an image file (relative to this directory) to use as a favicon of
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
#
html_favicon = "_static/favicon.ico"
# Output file base name for HTML help builder.
htmlhelp_basename = 'AdafruitPlatformDetectLibrarydoc'
htmlhelp_basename = "AdafruitPlatformDetectLibrarydoc"
# -- Options for LaTeX output ---------------------------------------------
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#
# 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#
# 'preamble': '',
# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
# The paper size ('letterpaper' or 'a4paper').
# 'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
# 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
# 'preamble': '',
# Latex figure (float) alignment
# 'figure_align': 'htbp',
}
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'AdafruitPlatformDetectLibrary.tex', u'AdafruitPlatformDetect Library Documentation',
author, 'manual'),
(
master_doc,
"AdafruitPlatformDetectLibrary.tex",
"AdafruitPlatformDetect Library Documentation",
author,
"manual",
),
]
# -- Options for manual page output ---------------------------------------
@ -135,8 +155,13 @@ latex_documents = [
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'AdafruitPlatformDetectlibrary', u'Adafruit PlatformDetect Library Documentation',
[author], 1)
(
master_doc,
"AdafruitPlatformDetectlibrary",
"Adafruit PlatformDetect Library Documentation",
[author],
1,
)
]
# -- Options for Texinfo output -------------------------------------------
@ -145,7 +170,13 @@ man_pages = [
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'AdafruitPlatformDetectLibrary', u'Adafruit PlatformDetect Library Documentation',
author, 'AdafruitPlatformDetectLibrary', 'One line description of project.',
'Miscellaneous'),
(
master_doc,
"AdafruitPlatformDetectLibrary",
"Adafruit PlatformDetect Library Documentation",
author,
"AdafruitPlatformDetectLibrary",
"One line description of project.",
"Miscellaneous",
),
]

42
docs/index.rst Normal file
View file

@ -0,0 +1,42 @@
.. include:: ../README.rst
Table of Contents
=================
.. toctree::
:maxdepth: 4
:hidden:
self
.. toctree::
:caption: API Reference
:maxdepth: 3
api
.. toctree::
:caption: Tutorials
Adding a Single Board Computer to PlatformDetect for Blinka <https://learn.adafruit.com/adding-a-single-board-computer-to-platformdetect-for-blinka>
.. toctree::
:caption: Related Products
.. toctree::
:caption: Other Links
Download <https://github.com/adafruit/Adafruit_Python_PlatformDetect/releases/latest>
CircuitPython Reference Documentation <https://circuitpython.readthedocs.io>
CircuitPython Support Forum <https://forums.adafruit.com/viewforum.php?f=60>
Discord Chat <https://adafru.it/discord>
Adafruit Learning System <https://learn.adafruit.com>
Adafruit Blog <https://blog.adafruit.com>
Adafruit Store <https://www.adafruit.com>
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

3
docs/index.rst.license Normal file
View file

@ -0,0 +1,3 @@
# SPDX-FileCopyrightText: 2020 ladyada for Adafruit Industries
#
# SPDX-License-Identifier: MIT

5
docs/requirements.txt Normal file
View file

@ -0,0 +1,5 @@
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
#
# SPDX-License-Identifier: Unlicense
sphinx>=4.0.0

37
pyproject.toml Normal file
View file

@ -0,0 +1,37 @@
# SPDX-FileCopyrightText: 2022 Alec Delaney for Adafruit Industries
#
# SPDX-License-Identifier: MIT
[build-system]
requires = [
"setuptools",
"wheel",
"setuptools-scm",
]
[project]
name = "Adafruit-PlatformDetect"
description = "Platform detection for use by libraries like Adafruit-Blinka."
version = "0.0.0+auto.0"
readme = "README.rst"
authors = [
{name = "Adafruit Industries", email = "circuitpython@adafruit.com"}
]
urls = {Homepage = "https://github.com/adafruit/Adafruit_Python_PlatformDetect"}
license = {text = "MIT"}
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Hardware",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
]
dynamic = ["dependencies"]
[tool.setuptools]
packages = ["adafruit_platformdetect", "adafruit_platformdetect.constants"]
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}

0
requirements.txt Executable file → Normal file
View file

View file

@ -1,45 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Note: To use the 'upload' functionality of this file, you must:
# $ pip install twine
import io
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
# Import the README and use it as the long-description.
# Note: this will only work if 'README.md' is present in your MANIFEST.in file!
with io.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = '\n' + f.read()
setup(
name='Adafruit-PlatformDetect',
use_scm_version=True,
setup_requires=["setuptools_scm"],
description='Platform detection for use by libraries like Adafruit-Blinka.',
long_description=long_description,
long_description_content_type='text/x-rst',
author='Adafruit Industries',
author_email='circuitpython@adafruit.com',
python_requires='>=3.4.0',
url='https://github.com/adafruit/Adafruit_Python_PlatformDetect',
# If your package is a single module, use this instead of 'packages':
packages=['adafruit_platformdetect'],
install_requires=[],
license='MIT',
classifiers=[
# Trove classifiers
# Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: MicroPython',
],
)