Skip to content

add bouncing ball example #6

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 2 commits into from
Jan 2, 2018
Merged

add bouncing ball example #6

merged 2 commits into from
Jan 2, 2018

Conversation

raidancampbell
Copy link
Contributor

hopefully this one doesn't throw as many linting issues

@tannewt tannewt requested a review from a team December 27, 2017 23:39
Copy link
Contributor

@jerryneedell jerryneedell left a comment

Choose a reason for hiding this comment

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

Nice example and animation! The animation section is nicely commented. One minor concern
is that as presented in the example with radius=5, the "circle" appears as a "square". It would be nice to include more comments in the code about what the draw_circle function is actually doing to make it more clear why. I would suggest a larger value for the demo. radius=8 has some better shape to it.

@jerryneedell
Copy link
Contributor

After thinking about this some more and doing some searches to educate myself I think it would be sufficient just to reference something like https://en.wikipedia.org/wiki/Midpoint_circle_algorithm. At least for me, it was not immediately obvious what it was doing. This example serves 2 nice purposes - 1) animation and 2) circle drawing and it would be nice to demystify the circle drawing example a bit.

Increased default radius, and added reference for circle drawing algorithm
@raidancampbell
Copy link
Contributor Author

Changes implemented via 74ff27a

@tannewt tannewt merged commit 36e9f6d into adafruit:master Jan 2, 2018
@tannewt
Copy link
Member

tannewt commented Jan 2, 2018

Looks great! Thanks!

tannewt pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jan 10, 2018
Updating https://github.com/adafruit/Adafruit_CircuitPython_FXAS21002C to 1.0.0 from 0.8.0:
  > use struct when available, list comp instead of map() (adafruit/Adafruit_CircuitPython_FXAS21002C#2)

Updating https://github.com/adafruit/Adafruit_CircuitPython_FXOS8700 to 1.0.0 from 0.8.0:
  > use struct when available, change map() to list comp (adafruit/Adafruit_CircuitPython_FXOS8700#4)

Updating https://github.com/adafruit/Adafruit_CircuitPython_HT16K33 to 2.0.0 from 1.0.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_HT16K33#1 from tannewt/lint

Updating https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel to 3.1.0 from 3.0.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_NeoPixel#21 from mrmcwethy/examples

Updating https://github.com/adafruit/Adafruit_CircuitPython_PCA9685 to 3.0.0 from 2.0.1:
  > Fix up ReadTheDocs. (adafruit/Adafruit_CircuitPython_PCA9685#9)
  > Huge refactor, switch to PWMOut compatible API. (adafruit/Adafruit_CircuitPython_PCA9685#8)

Updating https://github.com/adafruit/Adafruit_CircuitPython_SD to 3.1.0 from 3.0.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_SD#5 from mrmcwethy/examples

Updating https://github.com/adafruit/Adafruit_CircuitPython_SSD1306 to 2.2.0 from 2.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_SSD1306#8 from dhalbert/master
  > add bouncing ball example (adafruit/Adafruit_CircuitPython_SSD1306#6)

Updating https://github.com/adafruit/Adafruit_CircuitPython_SimpleIO to 1.0.1 from 1.0.0:
  > Changes to the tone function (adafruit/Adafruit_CircuitPython_SimpleIO#24)
  > Make lint happy
  > handle reversed range on output
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