Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for different chip detection + quad rotary demo #118

Merged
merged 8 commits into from
Jun 28, 2023

Conversation

ladyada
Copy link
Member

@ladyada ladyada commented Jun 27, 2023

@BlitzCityDIY will need linting n stuffs but is tested on a feather m4

@BlitzCityDIY
Copy link
Contributor

@ladyada thanks! i ran pylint for the example but i wanted to check on an error in seesaw.py in the analog_read and analog_write functions:

seesaw.py:268:27: E0602: Undefined variable '_ATTINY8X7_HW_ID_CODE' (undefined-variable)
seesaw.py:364:27: E0602: Undefined variable '_ATTINY8X7_HW_ID_CODE' (undefined-variable)

i wasn't sure if the variable was maybe supposed to be _ATTINY807_HW_ID_CODE or _ATTINY817_HW_ID_CODE?

adafruit_seesaw/seesaw.py Outdated Show resolved Hide resolved
@ladyada
Copy link
Member Author

ladyada commented Jun 27, 2023

@BlitzCityDIY ok i think if ixed that error, only the samd09 has weird offsets. now we just use the native pin names

@ladyada ladyada requested a review from caternuson June 28, 2023 16:49
if self.chip_id == _ATTINY8X7_HW_ID_CODE:
offset = pin
elif self.chip_id == _SAMD09_HW_ID_CODE:
self.chip_id == _SAMD09_HW_ID_CODE:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple syntax error here - missing if.

I think that's rippling out and causing a lot of the other failures. Might also need some black/pylint-ification of the two files as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sigh sorry i thought it pushed, commited & pushed now

@caternuson
Copy link
Contributor

@ladyada OK, now it's just black (like clangformat, just run it and let it do what it wants) and pylint (fix or shush, etc).

@ladyada
Copy link
Member Author

ladyada commented Jun 28, 2023

@BlitzCityDIY can you do the 🧹 - im getting roped into show stuff :)

@ladyada ladyada merged commit b317568 into adafruit:main Jun 28, 2023
@ladyada
Copy link
Member Author

ladyada commented Jun 28, 2023

thanks all :)

adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jul 18, 2023
Updating https://github.com/adafruit/Adafruit_CircuitPython_FocalTouch to 1.4.9 from 1.4.8:
  > Merge pull request adafruit/Adafruit_CircuitPython_FocalTouch#26 from adafruit/ladyada-patch-1

Updating https://github.com/adafruit/Adafruit_CircuitPython_MAX9744 to 1.2.15 from 1.2.14:
  > Merge pull request adafruit/Adafruit_CircuitPython_MAX9744#17 from kbsriram/add-typing

Updating https://github.com/adafruit/Adafruit_CircuitPython_Nunchuk to 1.1.9 from 1.1.8:
  > Merge pull request adafruit/Adafruit_CircuitPython_Nunchuk#31 from adafruit/stemma_i2c

Updating https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display to 3.12.0 from 3.11.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_RGB_Display#114 from makermelissa/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_Seesaw to 1.14.0 from 1.13.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_seesaw#118 from ladyada/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_asyncio to 0.5.23 from 0.5.22:
  > Merge pull request adafruit/Adafruit_CircuitPython_asyncio#44 from furbrain/main
  > Merge pull request adafruit/Adafruit_CircuitPython_asyncio#42 from tekktrik/dev/fix-build-bundle

Updating https://github.com/adafruit/Adafruit_CircuitPython_HTTPServer to 4.1.0 from 4.0.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_HTTPServer#59 from FoamyGuy/ethernet_example
  > Merge pull request adafruit/Adafruit_CircuitPython_HTTPServer#58 from michalpokusa/server-headers

Updating https://github.com/adafruit/Adafruit_CircuitPython_NTP to 3.0.10 from 3.0.9:
  > Merge pull request adafruit/Adafruit_CircuitPython_NTP#30 from joshua-beck-0908/timezone_fix

Updating https://github.com/adafruit/Adafruit_CircuitPython_PortalBase to 1.14.9 from 1.14.8:
  > Merge pull request adafruit/Adafruit_CircuitPython_PortalBase#92 from makermelissa/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Updated download stats for the libraries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants