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

Pulled in baud rate and PiGPIO user PRs #84

Closed
wants to merge 1 commit into from
Closed

Conversation

adammhaile
Copy link
Member

No description provided.

@rec
Copy link
Contributor

rec commented Dec 24, 2016

Travis fails!

Commit name is totally opaque - could be anything! :-P

@adammhaile
Copy link
Member Author

adammhaile commented Dec 24, 2016 via email

Changed version to 3.0.0b0
@adammhaile adammhaile changed the title pulled in user submissions Pulled in baud rate and PiGPIO user PRs Dec 24, 2016
@adammhaile
Copy link
Member Author

@rec - There. Fixed.

Copy link
Contributor

@rec rec left a comment

Choose a reason for hiding this comment

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

Overall, I think of this as three several commits, but I might be happy if you just changed the version number in a different commit.

@@ -20,6 +22,7 @@ def _render(self):
newBuf[3::4] = self._buf[2::3]
self._buf[:] = [0, 0, 0, 0] + newBuf
self._buf.extend([0xFF, 0, 0, 0] * self._latchBytes)
print(list(self._buf))
Copy link
Contributor

Choose a reason for hiding this comment

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

Oops!

@@ -3,4 +3,4 @@

from . import animation, colors, font, gamma, led, log, util

__version__ = VERSION = '2.0.10'
__version__ = VERSION = '3.0.0b0'
Copy link
Contributor

Choose a reason for hiding this comment

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

This should really be a different separate CL!

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah yeah yeah.... 📦

def __init__(self, num, c_order=ChannelOrder.RGB, use_py_spi=True,
dev="/dev/spidev0.0", SPISpeed=1, open=open):
def __init__(self, num, c_order=ChannelOrder.RGB, interface=SPIInterface.PY_SPI,
dev="/dev/spidev0.0", SPISpeed=1, open=open, exists=exists):
Copy link
Contributor

Choose a reason for hiding this comment

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

I just discovered this: https://github.com/jmcgeheeiv/pyfakefs- a fake filesystem for unit tests!

Copy link
Member Author

Choose a reason for hiding this comment

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

hmm... cool. Will look into pulling that in. Will leave this way for now.

s = d.split('.')
if len(s) == 2:
self.numSPI = int(s[0])
self.numCS = int(s[1])
Copy link
Contributor

Choose a reason for hiding this comment

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

If s doesn't length 2, you fail, silently!

I'd go with self.numSPI, self.numCS = (int(i) for i in s) which throws an exception

@@ -69,8 +74,8 @@ def test_gamma1(self):

def test_apa102(self):
driver = DriverAPA102(num=4, **self.SPD)
expected = [0, 0, 0, 0, 255, 0, 0, 0, 255, 1, 8, 64,
255, 2, 16, 128, 255, 3, 24, 192, 255, 0, 0, 0]
expected = [0, 0, 0, 0, 255, 0, 0, 0, 255, 0, 0, 8, 255,
Copy link
Contributor

Choose a reason for hiding this comment

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

Whoa, why the huge change here? what happened?

@adammhaile
Copy link
Member Author

adammhaile commented Dec 25, 2016 via email

@rec
Copy link
Contributor

rec commented Dec 25, 2016 via email

@adammhaile
Copy link
Member Author

F*&$ it... I'm throwing this all out. I've decided that this could all be done much cleaner.

@adammhaile adammhaile closed this Dec 28, 2016
@rec
Copy link
Contributor

rec commented Dec 28, 2016 via email

@adammhaile adammhaile deleted the user_submit branch December 29, 2016 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants