Search found 238 matches

by BennehBoy
Thu Feb 23, 2017 4:55 pm
Forum: General discussion
Topic: Help with porting...
Replies: 14
Views: 108

Re: Help with porting...

OK sorted....

btns[i]->sense()


Also got rid of the strlcpy usage:

strlcpy(list_buffer,(char*)(menu_header+current_header), 21);

By using

menu_header[current_header]
by BennehBoy
Thu Feb 23, 2017 3:56 pm
Forum: General discussion
Topic: Help with porting...
Replies: 14
Views: 108

Re: Help with porting...

Having some trouble with this, I think the button reading code might have an 8bit to 32bit issue because it's returning random values for the buttons being pressed. Reading the pins directly shows their correct state so it's not a wiring up issue. Anyhow, here's the constructor for the buttons which...
by BennehBoy
Wed Feb 22, 2017 10:21 am
Forum: General discussion
Topic: Questions about the EEPROM lib
Replies: 4
Views: 96

Re: Questions about the EEPROM lib

SPI micro SD readers and micro SD cards are cheap. I'll be using these because of the issues raised by Roger above.
by BennehBoy
Tue Feb 21, 2017 10:30 pm
Forum: Off topic
Topic: Yet another ...yet another "Pi killer"
Replies: 8
Views: 110

Re: Yet another ...yet another "Pi killer"

RogerClark wrote:
I'm currently designing a board using the nRF52840, (64Mhz, Cortex M4F , 1M flash and 256k RAM) which is the latest generation of the processor used in the microbit


Sweet.
by BennehBoy
Tue Feb 21, 2017 10:21 pm
Forum: General discussion
Topic: Help with porting...
Replies: 14
Views: 108

Re: Help with porting...

We have a winner, thanks Steve!

Now to convert it from using the LCD library to an OLED so I can see what's actually going on, should be pretty simple.

8-)
by BennehBoy
Tue Feb 21, 2017 10:00 pm
Forum: Off topic
Topic: Yet another ...yet another "Pi killer"
Replies: 8
Views: 110

Re: Yet another ...yet another "Pi killer"

Speaking of other useful and less costly devices...

I went hunting for my daughters microbit today... she informed me that she 'lost it' with her pencil case :/
by BennehBoy
Tue Feb 21, 2017 9:57 pm
Forum: General discussion
Topic: Help with porting...
Replies: 14
Views: 108

Re: Help with porting...

Don't need the memory library, it's binned. Got much further in the debug, and basically the code that uses the strlcpy_P function is the bit that's crashing the STM32. I need to invest some braincells into how to do what it's doing with bog standard fucntions... Essentially it's copying the content...
by BennehBoy
Tue Feb 21, 2017 9:53 am
Forum: General discussion
Topic: Help with porting...
Replies: 14
Views: 108

Re: Help with porting...

Compiles and runs until it attempts to process any button inputs - suspect this is either because the pointers to what was the progmem stuff has become broken with my edits, or because there are some unhandled button states when no actual button circuitry is connected. Anyhow, thanks for the help Ro...
by BennehBoy
Mon Feb 20, 2017 10:51 pm
Forum: General discussion
Topic: Help with porting...
Replies: 14
Views: 108

Re: Help with porting...

Yup, found the issue anyway, that MemoryFree library was breaking a lot of definitions. Removed.

Got it to compile.

Need to spend some time looking at exactly what those pgmspace functions do, they look to just substitute bits of strings so shouldn't be too difficult to figure out.
by BennehBoy
Mon Feb 20, 2017 10:25 pm
Forum: General discussion
Topic: Help with porting...
Replies: 14
Views: 108

Re: Help with porting...

I hacked out all the progmem stuff and replaced the pgmspace functions with what I think is their equivalents (rightly or wrongly). now the compiler is saying that true & false are undeclared lol??? C:\Users\bennehboy\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\cores\maple/WCharacter...

Go to advanced search