Hi, Yes, GCBASIC does support spliting a large project into multiple source files, and it works pretty well for what your describing (pushbuttons, rotary encoder, leds etc each in there own file). The directive you want to try is #insert, not #include. They do diffrent things: #include <file.h> is for library/header files, resolved against the compiler's library search path (lib folder). Thats what you'd use for things like glcd.h or other GCBASIC library headers.</file.h> #insert "file.gcb" textually...
Hi, Yes, GCBASIC does support spliting a large project into multiple source files, and it works pretty well for what your describing (pushbuttons, rotary encoder, leds etc each in there own file). The directive you want to try is #insert, not #include. They do diffrent things: include <file.h> is for library/header files, resolved against the compiler's library search path (lib folder). Thats what you'd use for things like glcd.h or other GCBASIC library headers.</file.h> insert "file.gcb" textually...
too right. Its dead easy to write ASM that works in one project, but, a whole different ball game when writing code for a high level language MikiTelsa. You can write your own function to do this, then you dont have to use lsr/lsl. It is simple and you can do it independent of the defined public functions. Take it easy and chill with the messaging
STLED316S is similar to the existing 7Segment libraries. Hack the existing libraries as this will give you the answer.
leftpad() Open the Demo folder in GCODE. Search 'EDIT'/'FIND' In Files. Search for leftpad. This returns 43 examples with some specific to LCD. An example from the GitHub repository. https://github.com/GreatCowBASIC/Demonstration_Sources/blob/main/Training_Support/PIC16F18313/Training16.gcb - line 101
@mkstevo These are not negative comments. They are pointing out the oversights in the approach. It aint a bad idea just need a number of big tweaks and some integration into the project to get it to work properly.
Just posted. https://sourceforge.net/p/gcbasic/discussion/596084/thread/2f0beef127/?page=19&limit=25#29f6/8b0b See 'Even this harms you and your work, you are a contributor of this project, don’t spit upwards'
@mkstevo Yes, but, this is not a valid approach. it is a very poor idea. Put the request in properly. https://www.gcbasic.com/bugtracking/bug_report_page.php because I cannot see the 'number of times'.