Brennen Bearnes
dcdd646251
indentation fixes; correct linux_id return value
2018-12-28 18:42:34 -07:00
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.
2018-12-28 18:29:44 -07:00
Brennen Bearnes
9c861c637f
Merge branch 'db410c' of https://github.com/ric96/Adafruit_Python_PlatformDetect into ric96-db410c
...
Additional fixes a syntax error and (I'm pretty sure) a logic bug.
2018-12-28 17:28:53 -07:00
Limor "Ladyada" Fried
bc4cedef21
Merge pull request #9 from adafruit/pi_overvolt_codes
...
pi revision codes: add overvolt / overclock indicator codes to list
2018-12-28 13:13:15 -08:00
Brennen Bearnes
c14d7d6d44
pi revision codes: add overvolt / overclock indicator codes to list
...
See https://github.com/adafruit/Adafruit_Blinka/issues/66 for rationale.
2018-12-28 14:09:17 -07:00
Brennen Bearnes
9830db0977
Merge pull request #8 from ladyada/master
...
Fix one missing Pi chip ID, add FT232H detect and overriding chip/board with envvar
2018-12-26 20:56:19 -07:00
ladyada
09a1fcc6bd
change requests!
2018-12-26 14:38:13 -05:00
ladyada
41bf478b32
fix for https://github.com/adafruit/Adafruit_Blinka/issues/66#issuecomment-449881482
2018-12-25 19:42:24 -05:00
ladyada
b205e66c65
allow overriding of the platform detect
2018-12-25 17:17:48 -05:00
ladyada
3f3ae47a7d
fix lint
2018-12-25 17:07:56 -05:00
ladyada
00a3d61df4
light lint
2018-12-25 14:08:43 -05:00
ladyada
8b500cabdb
detect FT232H thru a combo of environment var & ftdi1 test
2018-12-25 03:33:27 -05:00
Limor "Ladyada" Fried
0f122a7d0c
Merge pull request #7 from crazyquark/master
...
Proposal for ODROID C1/C2 support
2018-12-22 10:06:54 -08:00
crazyquark
883642d019
initial support for ODROID C1/C2
2018-12-22 10:37:43 +00:00
Brennen Bearnes
d7cfe7f992
add some additional details to README.rst
2018-12-21 16:45:54 -07:00
Brennen Bearnes
1df85f0d7e
Merge pull request #6 from adafruit/travis
...
Working .travis.yml, PyPI deploy creds
2018-12-21 15:32:11 -07:00
Brennen Bearnes
f472e150b8
disable sphinx for the moment
2018-12-21 15:23:09 -07:00
Brennen Bearnes
7cb2477701
add docs/conf.py
2018-12-21 14:10:02 -07:00
Brennen Bearnes
dde79b9a3b
Merge pull request #5 from adafruit/pi_1_revision_detect
...
WIP: first pass at switching up pi 1 revision detection
2018-12-21 14:08:34 -07:00
Brennen Bearnes
205604ed2b
first pass at switching up pi 1 revision detection
2018-12-21 13:31:47 -07:00
Brennen Bearnes
9be743c8a7
try again with pylint wildcard; add docstrings to some board properties
2018-12-21 13:00:08 -07:00
Brennen Bearnes
65e02b565e
travis: correct source path
2018-12-21 12:45:20 -07:00
Brennen Bearnes
1fab768146
add .travis.yml
2018-12-21 12:25:52 -07:00
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>
2018-12-21 16:10:42 +05:30
Brennen Bearnes
732bef2abf
missing a _
2018-12-20 16:45:09 -07:00
Limor "Ladyada" Fried
ed3a4ffa75
Merge pull request #4 from adafruit/linux_detect
...
add board.any_linux
2018-12-20 15:40:02 -08:00
Brennen Bearnes
5a49af6b5c
s/any_linux/any_embedded_linux/
2018-12-20 16:38:03 -07:00
Brennen Bearnes
bb8e6982cf
Merge pull request #3 from adafruit/40pin
...
add 40-pin raspberry pi detection
2018-12-20 16:24:33 -07:00
Brennen Bearnes
3ccd25d886
add any_linux property check to bin/detect.py
2018-12-20 16:23:49 -07:00
Brennen Bearnes
ea389eebb0
spacing fix
2018-12-20 16:14:44 -07:00
Brennen Bearnes
f34a779b75
board.{any_beaglebone,any_linux,any_orange_pi}
...
Also deletes any_raspberry_pi_2_or_3, renames some constants.
2018-12-20 15:55:53 -07:00
Brennen Bearnes
5df844bc97
call correct 40pin property in detect.py
2018-12-20 12:29:06 -07:00
Brennen Bearnes
ffaf56ceb6
add 40-pin raspberry pi detection
2018-12-20 12:17:00 -07:00
Limor "Ladyada" Fried
a97afcd8e4
Merge pull request #1 from adafruit/missing_pi3b_code
...
add a missing pi revision code: a02082 for 3B
2018-12-17 22:31:44 -08:00
Brennen Bearnes
59f2dc5fad
add a missing pi revision code: a02082 for 3B
2018-12-17 22:43:45 -07:00
Brennen Bearnes
45bde4ee77
add a real README.rst
2018-12-13 15:22:37 -07:00
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.
2018-12-13 14:12:14 -07:00
Brennen Bearnes
7d2e0c830a
fix a couple of bugs in beaglebone detection; tested for BBB
...
...unfortunately, requires root as-written, which probably makes
this a lot less useful.
2018-12-12 14:10:49 -07:00
Brennen Bearnes
aca915f8c5
beaglebone board id detection from eeprom (maybe)
2018-12-12 12:15:53 -07:00
Brennen Bearnes
0d7e823fd3
add beaglebone board id dictionary and id constants
2018-12-11 18:30:17 -07:00
Brennen Bearnes
5c82d8a394
add __getattr__ to chip to mirror board interface
2018-12-11 15:33:18 -07:00
Brennen Bearnes
3bbe4d07f1
tweak getattr docstring
2018-12-11 14:32:00 -07:00
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.
2018-12-11 14:25:36 -07:00
Brennen Bearnes
672713699e
add ANY_RASPBERRY_PI_2_OR_3, SUN8I, NODEMCU constants
2018-12-09 22:14:26 -07:00
Brennen Bearnes
a4f2b22990
add feather huzzah, feather m0 express, pyboard to board names
2018-12-09 20:57:24 -07:00
ladyada
f9609d6bfa
get orangepipc detected
2018-12-09 13:49:55 -05:00
ladyada
ce4de73533
we should redo minnowboard, remove for now
2018-12-09 13:29:14 -05:00
ladyada
e52b082a73
sun8i detect
2018-12-09 13:27:47 -05:00
ladyada
a511100bae
single lines, and match multi-word chips like "Allwinner sun8i Family"
2018-12-09 13:14:09 -05:00
Brennen Bearnes
5409e9e722
beaglebone & armbian detection
2018-12-05 15:31:30 -07:00