Skip to content

Update to new build process and turn on lint. #18

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

Merged
merged 1 commit into from
Dec 12, 2017

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Dec 8, 2017

This introduces a minor change to the constructor API because the kwargs now must be keywords and not positional.

I haven't tested these changes on device yet. Please only merge you test it or I follow up later to say its tested.

For adafruit/circuitpython#475

This introduces a minor change to the constructor API because the kwargs now must be keywords and not positional.

I haven't tested these changes on device yet. Please only merge you test it or I follow up later to say its tested.

For adafruit/circuitpython#475
@tannewt tannewt requested a review from a team December 8, 2017 00:46
self._brightness = min(max(brightness, 0.0), 1.0)

def fill(self, color):
"""Colors all pixels the given ***color***."""
auto_write = self.auto_write
self.auto_write = False
for i in range(len(self)):
for i, _ in enumerate(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Be careful, enumerate needs to be explicitly turned on for certain MicroPython builds (with a config header bit change). The safest and most universal code here is iterating with range.

@tannewt
Copy link
Member Author

tannewt commented Dec 8, 2017 via email

@tdicola
Copy link
Contributor

tdicola commented Dec 12, 2017

FYI @microbuilder from discussion we're taking this change to the neopixel library but it looks like the nRF52 port in progress doesn't have the enumerate function turned on. Like mentioned above this means this updated neopixel library will now fail to run. It's an easy 1 line header fix to turn on enumerate in the nRF52 port though--check with @tannewt

tannewt added a commit to tannewt/circuitpython that referenced this pull request Dec 12, 2017
@kattni
Copy link
Contributor

kattni commented Dec 12, 2017

Looks good! Tested successfully on 2.x. Merging.

@kattni kattni merged commit fe8eb66 into adafruit:master Dec 12, 2017
tannewt pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Dec 13, 2017
Updating https://github.com/adafruit/Adafruit_CircuitPython_ADS1x15 to 0.2.0 from 0.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_ADS1x15#4 from tannewt/lint
  > Merge pull request adafruit/Adafruit_CircuitPython_ADS1x15#3 from mrmcwethy/updatebundle

Updating https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel to 3.0.0 from 2.0.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_NeoPixel#18 from chickadee-tech/lint
  > Switch files for new build process.
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