Search found 149 matches

by gratefulfrog
Tue Sep 13, 2016 4:07 pm
Forum: General Discussion and Questions
Topic: Accelerometer instantiation creates interrupts?
Replies: 21
Views: 15423

Re: Accelerometer instantiation creates interrupts?

@dhylands

For info, I got the Adafruit lcd-backpack, implemented it with your code, and it works perfectly.

It gave me 6 newly freed pins as well!

Thanks for that great tip!

Ciao,
Bob
by gratefulfrog
Sun Sep 04, 2016 6:30 pm
Forum: General Discussion and Questions
Topic: Accelerometer instantiation creates interrupts?
Replies: 21
Views: 15423

Re: Accelerometer instantiation creates interrupts?

Thanks for that explanation!

I believe that my programming is about done! Today, after exchanging some pins' functionality, I was able to execute a full test with no errors!!!

Thank you all, micropython/pyboard world!

Ciao,
Bob
by gratefulfrog
Sun Sep 04, 2016 8:57 am
Forum: General Discussion and Questions
Topic: Accelerometer instantiation creates interrupts?
Replies: 21
Views: 15423

Re: Accelerometer instantiation creates interrupts?

Thanks for that reply! I'm sorry if I did not explain well. I would not be using the MOSI, SCK, or SS pins for anything else. But I would like to use the interrupt lines associated with those pins for ExtInt. For example: the SCK pin X6 is associated with interrupt line 5. I would like to be able to...
by gratefulfrog
Sun Sep 04, 2016 7:58 am
Forum: General Discussion and Questions
Topic: Accelerometer instantiation creates interrupts?
Replies: 21
Views: 15423

Re: Accelerometer instantiation creates interrupts?

Hi Dave, I have one more question regarding pin usage conflicts. I use SPI on the X side (X5,X6,X7,X8), but only in Master mode, so I never read on the MISO pin X7. In that case, am I free to use X7 as input or output? Also, are the interrupt lines associated with the pins X5 = line 4, X6=line 5, X7...
by gratefulfrog
Sat Sep 03, 2016 8:43 pm
Forum: General Discussion and Questions
Topic: Accelerometer instantiation creates interrupts?
Replies: 21
Views: 15423

Re: Accelerometer instantiation creates interrupts?

Great news!

Tomorrow I hope to get it working!

The LCD Backpack has been ordered just in case!

Ciao,
Bob
by gratefulfrog
Sat Sep 03, 2016 7:55 pm
Forum: General Discussion and Questions
Topic: Accelerometer instantiation creates interrupts?
Replies: 21
Views: 15423

Re: Accelerometer instantiation creates interrupts?

Dave, you have done it again! Thanks so much! I just ordered one of those backpacks! and plan on using your code to make it work, again.... In the meantime, do you not think that I could connect a pushbutton to X17 and configure an interrupt as: ExtInt('X17',ExtiInt.IRQ_FALLING,Pin.PULL_UP) and that...
by gratefulfrog
Sat Sep 03, 2016 7:13 pm
Forum: General Discussion and Questions
Topic: Accelerometer instantiation creates interrupts?
Replies: 21
Views: 15423

Re: Accelerometer instantiation creates interrupts?

Thanks again, Dave.

But if I need to use the X9/X10 pins for the Accel instance, can they also be used for the LCD backpack, at the same time?

Sorry for my immense ignorance...
by gratefulfrog
Sat Sep 03, 2016 6:50 pm
Forum: General Discussion and Questions
Topic: Accelerometer instantiation creates interrupts?
Replies: 21
Views: 15423

Re: Accelerometer instantiation creates interrupts?

@spotlightkid Thanks, but I'm already in 4bit mode... I'm thinking of using X17 as an ExtInt driven pull up input pin connected to a pushbutton. It seems to me that would be compatible with the USR button functionality? I would have to be careful to never hold the pushbutton down during boot, that's...
by gratefulfrog
Sat Sep 03, 2016 6:06 pm
Forum: General Discussion and Questions
Topic: Accelerometer instantiation creates interrupts?
Replies: 21
Views: 15423

Re: Accelerometer instantiation creates interrupts?

Thanks Dave. It looks like I'm really stuck. My only output pins are those connected tot the 16x2 LCD display. I am using your pyb_gpio_lcd.py code for that and you configure those pins as Pin.OUT_PP... I don't know if Pin.OUT_OD would work in your code or not and I don't have the lcd with me today ...
by gratefulfrog
Sat Sep 03, 2016 4:47 pm
Forum: General Discussion and Questions
Topic: Accelerometer instantiation creates interrupts?
Replies: 21
Views: 15423

Re: Accelerometer instantiation creates interrupts?

Ok, thanks. My only remaining pins are: X17 - the dreaded USR switch pin! could this be used for input and/or output without any switch problems? P2, P3, P4, P5 : these are the LED pins, but I don't care about the LEDs, can they be used as input and/or output? I would not have to configure ExtInts o...