]>
Repositories - Adafruit_Blinka-hackapet.git/log
Limor "Ladyada" Fried [Mon, 26 Nov 2018 18:21:55 +0000 (10:21 -0800)]
Merge pull request #51 from ladyada/master
renamed spi/i2c to generic linux since they're not platform specific
Your Name [Mon, 26 Nov 2018 17:17:48 +0000 (17:17 +0000)]
renamed spi/i2c to generic linux since they're not platform specific
and updated busio to include it when possible
Scott Shawcroft [Mon, 26 Nov 2018 01:43:59 +0000 (17:43 -0800)]
Merge pull request #47 from ladyada/master
add RGBW support by counting # of bytes in buffer
ladyada [Fri, 23 Nov 2018 02:34:32 +0000 (21:34 -0500)]
add RGBW support by counting # of bytes in buffer
Drew Fustini [Thu, 22 Nov 2018 20:43:11 +0000 (14:43 -0600)]
Merge pull request #46 from pdp7/master
Add preliminary SPI support for BeagleBone Black
Drew Fustini [Thu, 22 Nov 2018 07:01:23 +0000 (07:01 +0000)]
add SPI1 pins for BeagleBone Black
Refer to:
http://beagleboard.org/static/images/cape-headers-spi.png
CE1 P9.28 SPI1_CS0
MISO_1 P9.29 SPI1_D0
MOSI_1 P9.30 SPI1_D1
SCLK_1 P9.31 SPI_SCLK
SPI1 conflicts with HDMI Audio (McASP)
Refer to:
https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays
To Disable HDMI AUDIO, uncomment this line in /boot/uEnv.txt:
disable_uboot_overlay_audio=1
Set pin modes for SPI1 with:
config-pin p9.28 spi_cs
config-pin p9.29 spi
config-pin p9.30 spi
config-pin p9.31 spi_sclk
Drew Fustini [Wed, 21 Nov 2018 19:20:34 +0000 (19:20 +0000)]
add more plumbing for SPI on BeagleBone
reuse the Raspberry Pi SPI class as both are
Linux boards using spidev. The main difference
is the pins numbers are different.
Testing with Adafruit_CircuitPython_BME280 in SPI mode.
TODO: wire up the board to the BeagleBone Black
Current output:
debian@beaglebone:~/Adafruit_CircuitPython_BME280$ sudo python3 examples/bme280_simpletest.py
SPI(): __init()
SPI(): beaglebone_black: from adafruit_blinka.microcontroller.raspi_23.spi import SPI as _SPI
spiPorts: ((0, P9_22, P9_18, P9_21), (1, P9_22, P9_18, P9_21))
for:
0 P9_22 P9_18 P9_21
Line 91
<class 'adafruit_blinka.microcontroller.raspi_23.spi.SPI'>
<adafruit_blinka.microcontroller.raspi_23.spi.SPI object at 0xb6b3c890>
Traceback (most recent call last):
File "examples/bme280_simpletest.py", line 15, in <module>
bme280 = adafruit_bme280.Adafruit_BME280_SPI(spi, bme_cs)
File "/usr/local/lib/python3.5/dist-packages/adafruit_circuitpython_bme280-2.1.1.dev3+g1416d93-py3.5.egg/adafruit_bme280.py", line 247, in __init__
File "/usr/local/lib/python3.5/dist-packages/adafruit_circuitpython_bme280-2.1.1.dev3+g1416d93-py3.5.egg/adafruit_bme280.py", line 78, in __init__
RuntimeError: Failed to find BME280! Chip ID 0x0
Drew Fustini [Wed, 21 Nov 2018 18:46:31 +0000 (18:46 +0000)]
Add SPI pins for BeagleBone Black
Refer to header default pin modes
http://beagleboard.org/static/images/cape-headers.png
P9_17 (SPI0_CSO => CE0) enables peripheral device
P9_18 (SPI0_D1 => MOSI) outputs data to peripheral device
P9_21 (SPIO_DO => MISO) receives data from peripheral device
P9_22 (SPI0_SCLK => SCLK) outputs clock signal
Use config-pin to set pin mode for SPI pins
https://github.com/beagleboard/bb.org-overlays/tree/master/tools/beaglebone-universal-io
config-pin p9.17 spi_cs
config-pin p9.18 spi
config-pin p9.21 spi
config-pin p9.22 spi_sclk
Drew Fustini [Tue, 20 Nov 2018 06:27:02 +0000 (00:27 -0600)]
Merge pull request #42 from pdp7/master
add preliminary I2C bus support for the BeagleBone Black
Drew Fustini [Mon, 29 Oct 2018 21:27:27 +0000 (21:27 +0000)]
Use busnum 2 for I2C on BeagleBone Black
Change i2cPorts to use bus num 2 by default on the
BeagleBone Black. This is needed for I2C device
wired up to P9.19 (I2C2_SCL) and P9.20 (I2C2_SDA).
for reference, pin diagram including default i2c pins:
http://beagleboard.org/static/images/cape-headers.png
Drew Fustini [Mon, 22 Oct 2018 18:15:20 +0000 (18:15 +0000)]
remove debug print statement
Drew Fustini [Mon, 22 Oct 2018 17:48:17 +0000 (17:48 +0000)]
add I2C bus support for the BeagleBone Black
Limor "Ladyada" Fried [Thu, 18 Oct 2018 16:40:16 +0000 (09:40 -0700)]
Merge pull request #40 from pdp7/master
Add example to blink LED on BeagleBone
Drew Fustini [Thu, 18 Oct 2018 16:14:13 +0000 (16:14 +0000)]
fix style issues in BeagleBone example
Drew Fustini [Thu, 18 Oct 2018 15:56:50 +0000 (15:56 +0000)]
Add example to blink LED on BeagleBone
Limor "Ladyada" Fried [Fri, 21 Sep 2018 03:59:39 +0000 (20:59 -0700)]
Merge pull request #38 from pdp7/master
Add GPIO pins for the BeagleBone Black
Drew Fustini [Thu, 20 Sep 2018 23:18:16 +0000 (18:18 -0500)]
Adding GPIO pins for the BeagleBone Black
Add all the possible GPIO pins on the P8 and P9 headers
of the BeagleBone Black.
Source of GPIO pins numbers is:
https://github.com/adafruit/adafruit-beaglebone-io-python/blob/master/source/common.c
GPIO pins on BeagleBone Black:
P8_3
P8_4
P8_5
P8_6
P8_7
P8_8
P8_9
P8_10
P8_11
P8_12
P8_13
P8_14
P8_15
P8_16
P8_17
P8_18
P8_19
P8_20
P8_21
P8_22
P8_23
P8_24
P8_25
P8_26
P8_27
P8_28
P8_29
P8_30
P8_31
P8_32
P8_33
P8_34
P8_35
P8_36
P8_37
P8_38
P8_39
P8_40
P8_41
P8_42
P8_43
P8_44
P8_45
P8_46
P9_11
P9_12
P9_13
P9_14
P9_15
P9_16
P9_17
P9_18
P9_19
P9_20
P9_21
P9_22
P9_23
P9_24
P9_25
P9_26
P9_27
P9_28
P9_29
P9_30
P9_31
P9_41
P9_42
Limor "Ladyada" Fried [Thu, 13 Sep 2018 19:51:42 +0000 (12:51 -0700)]
Merge pull request #36 from ladyada/master
first BBB digitalio blinking
ladyada [Thu, 13 Sep 2018 18:51:16 +0000 (14:51 -0400)]
let there be BLINK
ladyada [Thu, 13 Sep 2018 18:04:46 +0000 (14:04 -0400)]
not quite gpio'in yet but getting closer...
ladyada [Thu, 13 Sep 2018 17:55:47 +0000 (13:55 -0400)]
detect BBB
Dan Halbert [Sun, 9 Sep 2018 02:46:57 +0000 (22:46 -0400)]
Merge pull request #35 from ladyada/master
more conditionals for raspi
ladyada [Sun, 9 Sep 2018 02:42:25 +0000 (22:42 -0400)]
more conditionals for raspi
Dan Halbert [Sat, 8 Sep 2018 20:57:34 +0000 (16:57 -0400)]
Merge pull request #34 from ladyada/master
only install on raspi?
ladyada [Sat, 8 Sep 2018 20:39:38 +0000 (16:39 -0400)]
only install on raspi?
Limor "Ladyada" Fried [Fri, 31 Aug 2018 19:52:34 +0000 (12:52 -0700)]
Merge pull request #32 from ladyada/master
add missing module
ladyada [Fri, 31 Aug 2018 19:37:44 +0000 (15:37 -0400)]
add dependancy
ladyada [Fri, 31 Aug 2018 19:33:31 +0000 (15:33 -0400)]
add missing module
Scott Shawcroft [Fri, 31 Aug 2018 18:17:50 +0000 (11:17 -0700)]
Merge pull request #30 from ladyada/master
initial commit, working code
ladyada [Fri, 31 Aug 2018 18:15:49 +0000 (14:15 -0400)]
autodoc additions
ladyada [Fri, 31 Aug 2018 18:12:08 +0000 (14:12 -0400)]
remove non-pi-breaking deps
ladyada [Fri, 31 Aug 2018 18:06:28 +0000 (14:06 -0400)]
less paranoid
ladyada [Fri, 31 Aug 2018 18:05:34 +0000 (14:05 -0400)]
less cute pixel splitting
ladyada [Thu, 30 Aug 2018 21:45:28 +0000 (17:45 -0400)]
initial commit, working code
Dan Halbert [Wed, 22 Aug 2018 15:37:04 +0000 (11:37 -0400)]
Merge pull request #29 from ladyada/master
add support for second SPI - tested!
ladyada [Wed, 22 Aug 2018 15:25:54 +0000 (11:25 -0400)]
add support for second SPI - tested!
Dan Halbert [Sun, 19 Aug 2018 19:45:05 +0000 (15:45 -0400)]
Merge pull request #28 from ladyada/master
specifically name arguments now that we require it
ladyada [Sat, 18 Aug 2018 03:35:06 +0000 (23:35 -0400)]
specifically name arguments now that we require it
Limor "Ladyada" Fried [Fri, 17 Aug 2018 22:03:21 +0000 (15:03 -0700)]
Merge pull request #27 from adafruit/raspi_spi_class_vars
fix raspi spi access of mode constants (was missing a "self")
Brennen Bearnes [Fri, 17 Aug 2018 21:45:31 +0000 (15:45 -0600)]
fix raspi spi access of mode constants (was missing a "self")
Found this while testing the MAX31865.
Limor "Ladyada" Fried [Fri, 17 Aug 2018 18:34:39 +0000 (11:34 -0700)]
Merge pull request #26 from ladyada/master
add writeto_then_readfrom support for repeated-start i2c transactions
ladyada [Fri, 17 Aug 2018 18:28:23 +0000 (14:28 -0400)]
force labeling of kwargs
ladyada [Fri, 17 Aug 2018 16:28:34 +0000 (12:28 -0400)]
typofix
ladyada [Fri, 17 Aug 2018 16:26:53 +0000 (12:26 -0400)]
Add writeto_then_readfrom for non-stop transactions on linux
Kattni [Fri, 17 Aug 2018 15:34:30 +0000 (11:34 -0400)]
Merge pull request #25 from ladyada/master
fix for https://github.com/adafruit/Adafruit_Blinka/issues/21
ladyada [Fri, 17 Aug 2018 15:23:11 +0000 (11:23 -0400)]
fix for https://github.com/adafruit/Adafruit_Blinka/issues/21
Kattni [Sun, 12 Aug 2018 23:28:59 +0000 (19:28 -0400)]
Merge pull request #22 from ladyada/master
I2C and SPI fixes to bring more in line with busio
ladyada [Sun, 12 Aug 2018 05:12:59 +0000 (01:12 -0400)]
add start/end as per http://circuitpython.readthedocs.io/en/latest/shared-bindings/busio/SPI.html
ladyada [Sat, 30 Jun 2018 22:12:20 +0000 (18:12 -0400)]
politely cope with strings of bytes
Limor "Ladyada" Fried [Wed, 25 Jul 2018 15:43:48 +0000 (08:43 -0700)]
Merge pull request #20 from brentru/write_readinto_patches
Write_ReadInto PR Review Changes
brentru [Wed, 25 Jul 2018 14:16:58 +0000 (10:16 -0400)]
force pylint to v1.9.2
brentru [Tue, 24 Jul 2018 22:30:44 +0000 (18:30 -0400)]
data into buffer_in
brentru [Tue, 24 Jul 2018 19:59:06 +0000 (15:59 -0400)]
adding fixes from previous PR review
brentrubell [Tue, 24 Jul 2018 18:25:16 +0000 (14:25 -0400)]
Implementing Write_ReadInto for Raspberry Pi (#19)
Adding an implementation for write_readinto to the Raspberry Pi's spi.py class.
Scott Shawcroft [Mon, 2 Jul 2018 23:30:48 +0000 (16:30 -0700)]
Merge pull request #18 from tannewt/rogue_machine
Fix machine import when on normal Linux.
Scott Shawcroft [Mon, 2 Jul 2018 16:19:45 +0000 (09:19 -0700)]
Fix more agnostic uses.
Scott Shawcroft [Mon, 2 Jul 2018 16:12:02 +0000 (09:12 -0700)]
Fix microcontroller imports.
Scott Shawcroft [Mon, 2 Jul 2018 15:53:46 +0000 (08:53 -0700)]
Fix machine import when on normal Linux.
Also, rename variables for clarity.
Limor "Ladyada" Fried [Sat, 30 Jun 2018 21:14:05 +0000 (14:14 -0700)]
Merge pull request #16 from ladyada/master
SPI write/readinto work
ladyada [Sat, 30 Jun 2018 20:55:00 +0000 (16:55 -0400)]
SPI write/readinto work, tested with BME280
Limor "Ladyada" Fried [Sat, 30 Jun 2018 19:46:12 +0000 (12:46 -0700)]
Merge pull request #14 from ladyada/master
Add remaining GPIO to Pi board and quiet GPIO
ladyada [Sat, 30 Jun 2018 19:43:55 +0000 (15:43 -0400)]
add pins to board
ladyada [Sat, 30 Jun 2018 19:33:19 +0000 (15:33 -0400)]
add more pins, and organize a little nicer
ladyada [Sat, 30 Jun 2018 19:26:56 +0000 (15:26 -0400)]
quiet gpio
Scott Shawcroft [Sat, 30 Jun 2018 01:13:38 +0000 (18:13 -0700)]
Use find_packages to make sure and not miss a package.
Scott Shawcroft [Fri, 29 Jun 2018 20:40:26 +0000 (13:40 -0700)]
Switch to a function for const and package it.
Scott Shawcroft [Fri, 29 Jun 2018 19:40:59 +0000 (12:40 -0700)]
Relax python requirement
MicroPython and CircuitPython implement 3.4 so lets match them.
Scott Shawcroft [Thu, 28 Jun 2018 19:38:34 +0000 (12:38 -0700)]
Install setuptools_scm
Scott Shawcroft [Thu, 28 Jun 2018 19:26:04 +0000 (12:26 -0700)]
Try to get packaging happy.
Scott Shawcroft [Thu, 28 Jun 2018 19:11:21 +0000 (12:11 -0700)]
Change out of docs
Limor "Ladyada" Fried [Thu, 28 Jun 2018 19:03:29 +0000 (12:03 -0700)]
Merge pull request #13 from tannewt/raspi
Raspi
Scott Shawcroft [Thu, 28 Jun 2018 18:56:46 +0000 (11:56 -0700)]
Stop building bundles since its not needed on CircuitPython.
Scott Shawcroft [Thu, 28 Jun 2018 18:33:58 +0000 (11:33 -0700)]
Have Travis install requirements for sphinx
Scott Shawcroft [Thu, 28 Jun 2018 18:18:37 +0000 (11:18 -0700)]
Add Adafruit_GPIO dependency
Scott Shawcroft [Thu, 28 Jun 2018 18:09:51 +0000 (11:09 -0700)]
Remove path hacks from examples.
Make sure to `pip install -r requirements.txt` before running the
example and have this library in your path.
ladyada [Wed, 27 Jun 2018 21:32:56 +0000 (17:32 -0400)]
remove extraneous debugs
ladyada [Tue, 26 Jun 2018 04:25:24 +0000 (00:25 -0400)]
beginningish of SPI support
ladyada [Mon, 25 Jun 2018 02:49:04 +0000 (22:49 -0400)]
bit of a hack
ladyada [Mon, 25 Jun 2018 02:39:35 +0000 (22:39 -0400)]
just raw read/write for i2c - tested with mcp9808
ladyada [Wed, 20 Jun 2018 21:37:43 +0000 (17:37 -0400)]
completed busio i2c demo
ladyada [Mon, 18 Jun 2018 12:34:30 +0000 (08:34 -0400)]
add i2c scanning
ladyada [Mon, 18 Jun 2018 03:28:23 +0000 (23:28 -0400)]
begin i2c
ladyada [Mon, 18 Jun 2018 00:31:33 +0000 (20:31 -0400)]
pi digitalio example
ladyada [Mon, 18 Jun 2018 00:29:08 +0000 (20:29 -0400)]
digitalio works
ladyada [Sun, 17 Jun 2018 23:35:04 +0000 (19:35 -0400)]
matches other boards nicer
ladyada [Sun, 17 Jun 2018 23:22:27 +0000 (19:22 -0400)]
start raspi compatibility
Scott Shawcroft [Wed, 27 Jun 2018 18:36:23 +0000 (11:36 -0700)]
Merge pull request #12 from tannewt/auto_pypi
Lint! Untested.
Scott Shawcroft [Wed, 27 Jun 2018 17:53:00 +0000 (10:53 -0700)]
Get docs building
Scott Shawcroft [Wed, 27 Jun 2018 06:28:30 +0000 (23:28 -0700)]
Lint the src files.
Scott Shawcroft [Wed, 27 Jun 2018 01:29:49 +0000 (18:29 -0700)]
Lint! Untested.
Limor "Ladyada" Fried [Tue, 26 Jun 2018 21:41:10 +0000 (14:41 -0700)]
Merge pull request #11 from tannewt/auto_pypi
Rename to Adafruit_Blinka and auto-release to pypi as well as GitHub.
Scott Shawcroft [Tue, 26 Jun 2018 21:38:45 +0000 (14:38 -0700)]
Rename to Adafruit_Blinka and auto-release to pypi as well as GitHub.
Brennen Bearnes [Mon, 4 Jun 2018 22:10:18 +0000 (16:10 -0600)]
first pass at a setup.py
Using https://github.com/kennethreitz/setup.py/blob/master/setup.py as
starter boilerplate.
Limor "Ladyada" Fried [Tue, 27 Feb 2018 17:34:16 +0000 (12:34 -0500)]
Merge pull request #8 from cefn/master
PR now structure and approach somewhat stable
Cefn Hoile [Mon, 26 Feb 2018 23:22:05 +0000 (23:22 +0000)]
Cruft removal
Cefn Hoile [Mon, 26 Feb 2018 23:20:30 +0000 (23:20 +0000)]
No longer used. Stability issues from mounted filesystems make auto-sync impossible.
Cefn Hoile [Mon, 26 Feb 2018 23:05:27 +0000 (23:05 +0000)]
Added I2C example and further compatibility modules listed
Cefn Hoile [Mon, 26 Feb 2018 23:02:47 +0000 (23:02 +0000)]
Copy Paste error, pasted before import. Noted BNO055 not tested.
Cefn Hoile [Mon, 26 Feb 2018 22:32:28 +0000 (22:32 +0000)]
Moved to adafruit_blinka.agnostic
Cefn Hoile [Mon, 26 Feb 2018 22:31:33 +0000 (22:31 +0000)]
Headings added. More detail on repo structure and mpy-cross