Melissa LeBlanc-Williams
02c4fb0d7c
Fix typing errors for MicroPython
2 years ago
Chris Wilson
53ed144c1f
Set DYLD search path for homebrew libs on macOS
2 years ago
Melissa LeBlanc-Williams
8b96843830
Added Type Annotations
2 years ago
Alec Delaney
0b8b169595
Swap header written license for SPDX
2 years ago
Alec Delaney
be489f49d3
Add encoding to open() functions per pylint recommendations
2 years ago
François Schmidts
3c9133d44d
Fixing pylint warning about missing return statements
3 years ago
François Schmidts
fbc95067c8
Remove unecessary file close
3 years ago
Melissa LeBlanc-Williams
2e344175f4
Fix None type not iterable issue on Github actions
3 years ago
Melissa LeBlanc-Williams
27e60ee22f
Change docstring to be more accurate
3 years ago
Melissa LeBlanc-Williams
d9a251b321
Explicitly close files after use
3 years ago
kent
69e54cbe5d
Corrected pylint reported formatting issues
whitespaces removed. = surrounded with spaces and removed redundant else:
3 years ago
kent
ae007c0fbf
Added code to read board name from system
3 years ago
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.
3 years ago
Dale Weber
ab2bd7dee4
Changed names of UDOO_IDS and UDOO_ASSET_TAG; Corrected layout of UDOO_BOARD_IDS
4 years ago
=Dale Weber
8285f64c2a
The chip (Ryzen V1605B) and board *UDOO_BOLT) are now correctly detected by PlatformDetect.
4 years ago
=Dale Weber
e9f6442b06
Fixed the last one-off space I missed last time.
4 years ago
=Dale Weber
7d1f6696ca
Fixed a one-off space and added two ':' in comparisons
4 years ago
=Dale Weber
727cb3d3a0
First try at detecting an UDOO Bolt. There will probably be more.
4 years ago
Melissa LeBlanc-Williams
df66981de3
Black formatted, Pylinted, and Github Actionified
4 years ago
yeyeto2788
98a65eb537
Refactor library in order to separate components.
4 years ago
Melissa LeBlanc-Williams
38e74ffbf0
Fixed File Not Found error bug from 96Boards merge
5 years ago
John Welsh
fcebb19bf2
added jetson chip and board detect
5 years ago
Christopher Alessandro
536d3da897
Fix formating and indentation errors
5 years ago
Christopher Alessandro
5a298fbc78
Fix indent
5 years ago
Christopher Alessandro
d209a3a544
Add support to detect SAMA5 chips and the Giant Board
5 years ago
Brennen Bearnes
dcdd646251
indentation fixes; correct linux_id return value
5 years ago
Brennen Bearnes
f4712430e2
refactor 96boards detection
- Brings naming in line with existing conventions
- Replaces `_is_96Boards()` with an `any_96boards` property
- Renames `get_dt_compatible_field()` to `check_dt_compatible_value()`
to distinguish between returning a field's string value and a boolean
check on whether a value is present.
- Adds a 96Boards check to `bin/detect.py`.
This might still need some changes, and definitely needs tested on actual
96Boards hardware.
5 years ago
Sahaj Sarup
8339fbfb1e
add 96Boards DragonBoard410c
- We use /proc/device-tree/compatible and /proc/device-tree/model
to detect chip and board
- created get_dt_compatible_field to read said file and compare string
- added dragonboard410c as an example
Signed-off-by: Sahaj Sarup <sahaj.sarup@linaro.org>
5 years ago
Brennen Bearnes
534776a825
add tweaks for pylint; detect (some) generic linux systems; rename class
Main wrapper class is now `Detector`, which is more noun-y than verb-y.
Added GENERIC_X86 and GENERIC_LINUX_PC to chip and board, respectively.
Made pylint happier.
5 years ago
Brennen Bearnes
aca915f8c5
beaglebone board id detection from eeprom (maybe)
5 years ago
Brennen Bearnes
0d7e823fd3
add beaglebone board id dictionary and id constants
5 years ago
Brennen Bearnes
0c491f95a2
refactor board detection to dependent on chip; simplify getattr checking
Per feedback here and elsewhere:
https://forum.armbian.com/topic/8981-adafruit-circuitpython/?tab=comments#comment-67633
There's still plenty to be done here, but this is cleaner than it was.
Also makes some names more consistent, and uses uppercase string values for id
constants.
5 years ago
ladyada
a511100bae
single lines, and match multi-word chips like "Allwinner sun8i Family"
5 years ago
Brennen Bearnes
27bd8190f8
add Chip and Board, move to @property access for boards
5 years ago