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

Support neosegment displays #112

Merged
merged 17 commits into from
Jul 21, 2017
Merged

Support neosegment displays #112

merged 17 commits into from
Jul 21, 2017

Conversation

rm-hull
Copy link
Owner

@rm-hull rm-hull commented Jul 16, 2017

…o feature/neosegment

* 'master' of git://github.com/rm-hull/luma.led_matrix:
  Alternative WS2812 implementation (#113)
Copy link
Collaborator

@thijstriemstra thijstriemstra left a comment

Choose a reason for hiding this comment

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

see inline comments.

NeoSegments
"""""""""""
`@msurguy <https://twitter.com/msurguy?lang=en>`_ has `crowdsourced some WS2812 neopixels <https://www.crowdsupply.com/maksmakes/neosegment>`_
into a modular 3D-printed seven-segment module: To program these devices:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Replace seven-segment module: with seven-segment module..

Copy link
Owner Author

Choose a reason for hiding this comment

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

done

neoseg.color = "green"

The :py:class:`~luma.led_matrix.device.neosegment` class extends :py:class:`~luma.core.virtual.sevensegment`,
so the same text assignment (python slicing paradigms) can be use here as well -
Copy link
Collaborator

Choose a reason for hiding this comment

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

  • Python with a capital
  • 'use' should be 'used'

Copy link
Owner Author

Choose a reason for hiding this comment

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

done

from neopixel_demo import gfx


def rainbow(n=1000, saturation=1, value=1):
Copy link
Collaborator

Choose a reason for hiding this comment

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

a docstring for this method would be nice.

Copy link
Owner Author

Choose a reason for hiding this comment

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

done

techniques as the base class, but provides additional functionality to be
able to adddress individual characters colors.

:param width: the number of 7-segment elements that are cascaded.
Copy link
Collaborator

Choose a reason for hiding this comment

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

'the' should be 'The'.

Copy link
Owner Author

Choose a reason for hiding this comment

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

done

@@ -0,0 +1,93 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2014-17 Richard Hull and contributors
Copy link
Collaborator

Choose a reason for hiding this comment

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

2017 only.

Copy link
Owner Author

Choose a reason for hiding this comment

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

done

# Copyright (c) 2014-17 Richard Hull and contributors
# See LICENSE.rst for details.

import pytest
Copy link
Collaborator

Choose a reason for hiding this comment

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

(optional..) missing docstring for this module.

Copy link
Collaborator

@msurguy msurguy left a comment

Choose a reason for hiding this comment

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

This is awesome, thanks for creating a PR! I will be trying this out on the weekend and will let you know if there is anything that I can contribute code-wise.

@rm-hull rm-hull merged commit eeff913 into master Jul 21, 2017
@rm-hull rm-hull deleted the feature/neosegment branch July 21, 2017 06:59
@rm-hull
Copy link
Owner Author

rm-hull commented Jul 21, 2017

luma.led_matrix 0.11.0 released with the feature included

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