Search found 35 matches
- Thu Jun 01, 2023 6:24 pm
- Forum: Software issues
- Topic: Building an include .bas file
- Replies: 3
- Views: 2180
Re: Building an include .bas file
I have 22 I2C subs for handling the display and its associated LEDs and keypad. Current I have the Dim statements for i2cpresent, i2cresponse, LCD_String, msgstring in the primary program as Global Variables. These are used in almost all subs so I would rather keep them in the main program as oppose...
- Tue May 30, 2023 6:58 pm
- Forum: Software issues
- Topic: Building an include .bas file
- Replies: 3
- Views: 2180
Building an include .bas file
I have a group of subs that will be common across several programs/processors. There are variables that are currently Dim'd in the program where I created them. If I want to move these subs into an include file, should I move the DIm's for the variables they use into the include file as well, or do ...
- Mon May 22, 2023 10:25 pm
- Forum: Software issues
- Topic: Runaway BASIC program
- Replies: 12
- Views: 15466
Re: Runaway BASIC program
Tried that multiple times yesterday and that did not work. I can see the restarts but no char being sent to cause a halt and it certainly doesn't halt. It just restarts the program. That is why I posted after trying that and searching the forum for other possible solutions. Have been testing now usi...
- Mon May 22, 2023 10:20 pm
- Forum: SPI and I2C
- Topic: Simple example of I2c code " My World" request
- Replies: 48
- Views: 15949
Re: Simple example of I2c code " My World" request
In the sub GetKeypad that retrieves the keypad value via i2c, doing a compare to a string char works. i.e. if LCD_DATA(0) = "A" then goto EXIT1 EndIF This works inside the sub However if I pass LCD_DATA(0) into keypadval keypadval = LCD_DATA(0) and Return Sub GetKeypad(BYREF keypadval as String) the...
- Sun May 21, 2023 4:51 pm
- Forum: SPI and I2C
- Topic: Simple example of I2c code " My World" request
- Replies: 48
- Views: 15949
Re: Simple example of I2c code " My World" request
I did the compare to "X" and that appears to work. As soon as I can manage to kill the breakaway program, I can implement the last fix on handling the keypadresponse in the MAIN.
- Sun May 21, 2023 4:19 pm
- Forum: Software issues
- Topic: Runaway BASIC program
- Replies: 12
- Views: 15466
Runway Program needs to be stopped.
In the process of testing I missed a loop condition. As a result, I now have a runaway program locked in an outer loop. I have tried what I found here on the forum, but it has not worked for me. In the ArmBasic manual it says that on a RESET, there is a 500 ms window where it will look for input and...
- Sat May 20, 2023 5:23 pm
- Forum: SPI and I2C
- Topic: Simple example of I2c code " My World" request
- Replies: 48
- Views: 15949
Re: Simple example of I2c code " My World" request
That has clarified a number of issues. There is one issue that I am now trying to understand. The buttons on the display are mapped to characters. A through E, F G. When the button is pressed it puts an Uppercase value in the I2C buffer and when released can put the lowercase version in the buffer. ...
- Fri May 19, 2023 9:13 pm
- Forum: SPI and I2C
- Topic: Simple example of I2c code " My World" request
- Replies: 48
- Views: 15949
Re: Simple example of I2c code " My World" request
That explains why I am confused. I am used to the VB context of String arrays where: Dim x(20) as String defines an array of twenty elements where each element can contain up to 256 chars, and Dim x(20 as String(20) defines an array of twenty elements where each element is limited to 20 chars So is ...
- Fri May 19, 2023 8:18 pm
- Forum: Other Hardware interfaces
- Topic: 6522 and 6821
- Replies: 1
- Views: 1706
6522 and 6821
I am trying to rehab a machine that was built using a 6522 and 2-6821s (and a number of secondary chips) for its control functions by replacing them with a SuperPro and 2 Prostarts(avoids having to deal with interrupts). When I trace the digital outs from the original chips, they all seem to connect...
- Fri May 19, 2023 8:09 pm
- Forum: SPI and I2C
- Topic: Simple example of I2c code " My World" request
- Replies: 48
- Views: 15949
Re: Simple example of I2c code " My World" request
Issue #3 This doesn't make sense to me. In the Global Dim area Dim ProcStep(10) as String Under the Main section ProcStep(1) = "Pre-Wash" ProcStep(2) = "1st Developer" ProcStep(3) = "Wash" ProcStep(4) = "Color Developer" ProcStep(5) = "Wash" ProcStep(6) = "Blix" ProcStep(7) = "Running Wash" Errors w...