User Activity

  • Posted a comment on discussion Open Discussion on GCBASIC

    I will do...but it will still be in PICBASIC for now...

  • Posted a comment on discussion Open Discussion on GCBASIC

    Thanks a lot Evan. As I'm a little short in time, I made my proto this week-end using five separate ยตCs, one as MASTER and four as SLAVEs (see pictures). I even used my crapy code but, at the end of the day, it works. And thank you for explaining the use of GCB. I'm new to it so I have a lot to discover.

  • Posted a comment on discussion Open Discussion on GCBASIC

    Yes, I found some but none addressing several strings like I do. BTW, I could have written my code without #Include/#Insert but during the debugging process, I would have had to go through a ton of repeated lines which is a huge nonsense and waste of time. In other words, the use of #Include/#Insert saved me hours of code tweaking ๐Ÿ˜‰

  • Posted a comment on discussion Open Discussion on GCBASIC

    Thanks Ccin E Crout , why not? The downside here is the "loss" of one port but that might be the cost it takes.

  • Posted a comment on discussion Open Discussion on GCBASIC

    I actually opened another thread about #Include/#Insert but it is all for the same project. So please find here my project and it might help to understand why I'm currently doing the way...it is done. @20MHz, there is a huge timing issue (meaning there is no space at all for GOSUBs, GOTOs et so forth) using the WS2812B NeoPixel strings reason why I have some ultra simple assembler code in it. My wall clock has four digits made of each a NeoPixel string (4x 28 piexels). Each string is connected to...

  • Posted a comment on discussion Open Discussion on GCBASIC

    The project is about a wall clock made of four NeoPiexel (WS2812B) strings representing four seven segments digits, each string having 28 pixels to address. One segment is made of four Pixels. Since timing is extremely important and the PIC either slow, making calls using GOTOs or GOSUBs make the program to not work. For this reason, I simply write (=> #Insert) many reiteration of already existing code to avoid these losses fo time. Hope it helps to understand what I'm doing ๐Ÿ˜

  • Posted a comment on discussion Open Discussion on GCBASIC

    Thanks Chris but this is still not what I'm asking for. So, looking back to my first post, I could have asked otherwise like this: Dim PortPin as Byte ' this variable is ment to represent a PORT If a condition is true Then Light up the LED on i.e. PortPin = PORTA.0 Else Light up the LED on i.e. PortPin = PORTC.4 Endif SubRoutine: Do neopin=!Neopin Wait 500 ms Loop Is it a little more clear now? Actually, I can't make that work. Again, to avoid the need of copying tons of code, I have made one subroutine...

  • Posted a comment on discussion Open Discussion on GCBASIC

    Thank you Evan. I first tried with #Include but nothing worked until I did it with the #Insert command. This is what I found in the Wiki and it does indeed not act as in other programming languages, that's why I went for #Insert. "Those who are familiar with #include in assembly or C should bear in mind that #include in GCBASIC works differently to #include in most other languages - code is not inserted at the location of the #include, but rather at the end of the current program." I get your point...

View All

Personal Data

Username:
flotul
Joined:
2024-03-29 13:15:32.284000
Location:
SAVIGNY / Switzerland / CEST
Gender:
Male

Projects

  • No projects to display.

Personal Tools