Spark Logic

Making examples easier to find

ILI9341 MSP3223 · 14-contact header Pinout

Hi Guys,

We have examples in the repo, but I think hardly anyone knows they are there

The IDE’s “Examples” menu, only seems to look in the Libraries folder.

So….

I know this is a hack, but I think one way to make the examples easy for people to find is to add a dummy library called “A_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog _Examples”

This just needs a header in it, called A_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog _Examples.h and a subfolder called examples

Then the IDE finds this “library” and puts it at the top of the examples list

examples.png
examples.png (65.29 KiB) Viewed 695 times

Replies13

Thu May 12, 2016 10:43 pm

I, for one, like that approach.

Thu May 12, 2016 10:55 pm

@Warecatf

Thanks.

Fri May 13, 2016 3:37 am

WereCatf wrote:I, for one, like that approach.

Fri May 13, 2016 4:50 am

Thanks guys

I’m going to make the executive decision and make the change now, as we have me + 2 votes for the change and none against, and no other comments in the last 7 hours.

Fri May 13, 2016 9:48 am

+3 (I cheated! :lol: )

Fri May 13, 2016 12:12 pm

+1

Fri May 13, 2016 2:41 pm

+1
+1 for like button
srp

Fri May 13, 2016 6:07 pm

+1 ;)

Fri May 13, 2016 6:34 pm

Image

Fri May 13, 2016 7:20 pm

Image

Fri May 13, 2016 9:18 pm

OK

All the changes, including the Examples have now been pushed to both the master and the development branch.

If anyone has any examples that want to add, you can zip and attach the source here and I’ll add them

One other thing we could do is add need sections to the examples or re-organise if necessary

e.g. we have examples from leaflabs under the MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog folder, but this isn’t ideal.

Also BTW. I think we should remove the duplicate ILI9341ILI9341Displays, touch panels and LEDs… shows on my screen. I have used and programmed a few different types of SPI screens( ili9341 , st7735) using Python very successfully and these parallel screens have many of the…View in hardware catalog libs, as although it was handy to have a record of the different versions of that lib e.g. the Due version, I think its confusing and we should just have 1 lib that works well for this

Fri May 13, 2016 10:01 pm

RogerClark wrote:
Also BTW. I think we should remove the duplicate ILI9341ILI9341Displays, touch panels and LEDs… shows on my screen. I have used and programmed a few different types of SPI screens( ili9341 , st7735) using Python very successfully and these parallel screens have many of the…View in hardware catalog libs, as although it was handy to have a record of the different versions of that lib e.g. the Due version, I think its confusing and we should just have 1 lib that works well for this

Sat May 14, 2016 10:13 pm

I also noticed that some examples only work for the F1 as the #ifdef s are for __STM32F1STM32F1Microcontrollers and processors…w I am not able to compile. Error message: “C:\arduino-1.6.12\hardware\Arduino_STM32\ STM32F1 \cores\maple/boards.h:39:25: fatal error: board/board.h: No such file or directory” I…View in hardware catalog __

I suspect they would work with the F4 and GD32F1GD32F1Microcontrollers and processors… in the wrong direction is the platform.txt file. its Arduino\hardware\Arduino_STM32\ GD32F1 \platform.txt However I took a quick look and I can’t see anyhing in there that looks…View in hardware catalog , so I need to either add STMF4 and GD32F1GD32F1Microcontrollers and processors… in the wrong direction is the platform.txt file. its Arduino\hardware\Arduino_STM32\ GD32F1 \platform.txt However I took a quick look and I can’t see anyhing in there that looks…View in hardware catalog to the ifdefs or do it a different way

(mainly because I want to use the code on my GD32GD32Microcontrollers and processors…no bootloader and 120MHz clock. RogerClark Mon Feb 22, 2016 8:31 pm I tried to put a GD32 , taken from one board, onto a Maple mini, but my soldering was not good enough, and I ba…View in hardware catalog boards)

Post a reply

Optional · up to 10 MiB