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

Trinket M0 pins 3 and 4 as well as Gemma M0 pin 2 do not work #44

Open
cyborg5 opened this issue Jan 26, 2018 · 1 comment
Open

Trinket M0 pins 3 and 4 as well as Gemma M0 pin 2 do not work #44

cyborg5 opened this issue Jan 26, 2018 · 1 comment

Comments

@cyborg5
Copy link
Owner

@cyborg5 cyborg5 commented Jan 26, 2018

I'm opening this issue myself to highlight a known problem. I cannot get PWM output on Trinket M0 pin 3. It is connected to hardware pin PA07 which is identical to pin 9 on Arduino Zero, Arduino M0 Pro, and Adafruit Feather M0 boards all of which work. But for some reason PA07 on the Trinket M0 does not work. Similarly Trinket M0 pin 4 is connected to hardware pin PA06 which is identical to pin 8 on the Arduino Zero and Arduino M0 Pro and those work perfectly but not on the Trinket M0.

The Gemma M0 should support PWM on its pin 2 but I cannot get it to work. It's connected to hardware pin PA05 which I have not used elsewhere but the code should still work.

Anyone with suggestions your help is much appreciated. We went ahead and released the code because pin 0 works okay on both boards and 2 works okay on the Trinket M0.

@l8gravely
Copy link

@l8gravely l8gravely commented Dec 12, 2018

This is really really late, but on the GemmaM0, are you talking about A1/D2, A2/D0 or D1/A0 pin on the board when you talk about this issue? I'll track it down more myself once I'm home and can look at my working board, but current test setup in front of me gave me:

Traceback (most recent call last):
File "main.py", line 130, in
File "/lib/IRLib_P01_NECs.py", line 18, in send
File "/lib/IRLibSendBase.py", line 55, in sendGeneric
File "/lib/IRLibSendBase.py", line 14, in enableIROut
ValueError: Invalid pin

Adafruit CircuitPython 2.2.4 on 2018-03-07; Adafruit Gemma M0 with samd21e18

Where my initialization code looks like this:

 myS = IRLib_P01_NECs.IRsendNEC(board.D1)

Where it had worked properly with board.D0 before. Time to investigate more. Thanks for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants