I have not looked at the asm for ESP32, but it is quite the chip. I now the Arduino IDE has a model for it, Anyone thought about porting GCB to if it is microchip or AVR like inside? I do not like C, but have been using it with the ArduinoIDE just to play with the chip. Cheap, lots of i/o, wifi, blue tooth...
I took parts of code and made the below program. The LCD shows > 13 on the screen. Temp is 13 for some reason, and if I jumper (no keypad yet) D7 to D8 still 13 on display? Any ideas #chip mega328p, 16 #include <UNO_mega328p.h> HI2CMode Master #define HI2C_DATA #define LCD_IO 10 #define LCD_I2C_Address 0x4e '// Change to 0xFE for SainSmart ELSE 4E #define LCD_Backlight_On_State 1 '// These may need to be reversed #define LCD_Backlight_Off_State 0 #define KEYPAD_ROW_1 DIGITAL_11 #define KEYPAD_ROW_2...
4.7K pull-up seems to have done the trick. Thanks Will have keypads today and give the real test.
OK, another question. Anyhone have a 3x4 or 4x4 routine? None of the info mentioned pull up or down on anything, So I pulled from the examples and jumped D7 and D8
I took parts of code and made the below program. The LCD shows > 13 on the screen. Temp is 13 for some reason, and if I jumper (no keypad yet) D7 to D8 still 13 on display? Any ideas #chip mega328p, 16 #include <UNO_mega328p.h> HI2CMode Master #define HI2C_DATA #define LCD_IO 10 #define LCD_I2C_Address 0x4e '// Change to 0xFE for SainSmart ELSE 4E #define LCD_Backlight_On_State 1 '// These may need to be reversed #define LCD_Backlight_Off_State 0 #define KEYPAD_ROW_1 DIGITAL_11 #define KEYPAD_ROW_2...
The below code displays > 13 on the LCD I jumper D7 and 8 and no change as well. Any ideas? ~~~ #chip mega328p, 16 #include <UNO_mega328p.h> HI2CMode Master #define HI2C_DATA #define LCD_IO 10 #define LCD_I2C_Address 0x4e '// Change to 0xFE for SainSmart ELSE 4E #define LCD_Backlight_On_State 1 '// These may need to be reversed #define LCD_Backlight_Off_State 0 #define KEYPAD_ROW_1 DIGITAL_11 #define KEYPAD_ROW_2 DIGITAL_10 #define KEYPAD_ROW_3 DIGITAL_9 #define KEYPAD_ROW_4 DIGITAL_8 #define KEYPAD_COL_1...
Since this is my thread. I will post here. I grab some code and made the below. Keypad it on order, but will just short a row and column. When I run it I get my "> " and 13 (with no row/col shorted. If I short 7 and 8 still a 13 on display. Anyone see what I missed? ~~~ #chip mega328p, 16 #include <UNO_mega328p.h> HI2CMode Master #define HI2C_DATA #define LCD_IO 10 #define LCD_I2C_Address 0x4e '// Change to 0xFE for SainSmart #define LCD_Backlight_On_State 1 '// These may need to be reversed #define...
I made a post and do not see it. Going to bump this thread and see if somehow my account is not working. I get GCB stuff all day. I posted and like it never made it. I guess mods have to approve new topics or something (if I see this comment show up). Like to get keypad working this weekend...
I have never use the Arduino IDE (other that the (ESP). Only GCB on uC/AVR. On TX/RX high. The user has used two NANOs and same results. I will be on vacation tomorrow and bread board it with 2 LEDS and see what I get. Workng with someone that likes Arduino, all new to me. Normally I use a PIC and AVR and asm or GCB.
I will update the compiler tonight and see if that helps. Not sure on not enough info either time... Last post has source code, error and assembler program name. Also, first post on the UNO assumtion, in the title I mentioned the Arduino name (NANO),. Also lost on the Y or N part?
chip mega328p,16 dir portd.0 out dir portd.1 out do portd.0=!portd.0 portd.1=!portd.1 wait 1 sec loop Get gcasm symbol 11.0 has not been definded
Teaching someone GCB and wanted a full 8 bit port got a 5.5" 7 segment display, can use PORTC and fake the one bit, but I wanted to keep it simple.
It is a NANO. But seems the same issue as the UNO. Should I not be able to set portd.1 off and drive it down. The USB cable was use to program it via the bootloader, but was not connected when in-circuit. Power is running on RAW pin using the onboard regulator. Hope someone has figure it out before.
I want to use PortD on the Mega328p. For some reason PortD.0 (RX) and PortD.1 (TX) are always high (can not set off)? Is this a Arduino bootloader issue as they are marked TX/RX? Maybe I have a bad nano. Anyone found this before?
Opps. Works if I flipped the #define parameters, works both ways. Had I/O and equate/label flipped.
Thanks Stan. PD2 and PB5 from nano. Thanks.
chip mega328p, 16 include <UNO_mega328p.h> define DIGITAL_13 LED define DIGITAL_2 IR DIR LED Out DIR IR In DIM state as bit start: if IR <> 0 then rem gosub toggle end if goto start end
Looks like K&R C code to me. Is this all the code? Also, the first endif needs to...
Send it out in ASCII hex right? You need to break it into bytes of tens and ones...
Send it out in ASCII hex right? You need to break it into bytes of hundreds, tens...
Send it out in ASCII hex right? You need to break it into bytes of hundreds, tens...
Send it out in ASCII hex right? You need to break it into bytes of hundreds, tens...
I do not use the IDE. I open the chm and you a text editor and batch file to assemble...
If the search was at the top, you could hide the TOC sidebar ans search, that would...
David, do not think GPIO 3 can be an output. Do you have a schematic on the circuit....
David, do not think GPIO 3 can be an output. Do you have a schematic on the circuit....
David, do not think GPIO 3 can be an output. Do you have a schematic on the circuit....
William, correct all three addresses work, can try more? I change the text each time...
Evan/William, this works. Not sure what the LEDIO 10 and ADDRESS 0x3e do but it works....
This works. Not sure what the 10 and 0x3e do but it works. chip mega328p, 16 config...
This works. Not sure what the 10 and 0x3e do but it works. chip mega328p, 16 config...
Well, it is a 3E Sainsmart. And it now works. Not sure why the pull-ups did not work...
Thanks William. I will test them tonight. The chip has PCF8574T according to my ...
I ran the SW LED and no luck. The terminal would at least let me see the address...
Evan, Where do I find 12c. I posted this in the morning and it did not take for some...
Did 5K on clk and data, still no LED blink (did not find I2C anywhere). So I guess...
Did 5K on clk and data, still not LED blink (did not find I2C anywhere). So I guess...
No, I saw something about adding 5Ks, the other module (not sainsmart but TWI) works...
I ran this and goy no led blinking. I did a do loop to stick it is finds anything....
Nothing I could figure out how to work. Is terminal where MEGA328p can write to the...
Nothing I could figure out how to work. Is terminal where MEGA328p can write to the...
I did a manual run on a number of addresses. Where do I find the i2cdiscovery? I...
Hey Evan, Here is a link to it. 3f was no go, 4f, 47. The c a and 9 either. Maybe...
I bought a 4x20, tried the i2c address 3E 4E 7E. The display does not fire up. Was...
I bought a 4x20, tried the i2c address 3E 4E 7E. The display does not fire up. Was...
I just bought a couple nrf24L01's to start a small low speed pic/avr control network....
Thanks again William. The problem was the prescaler. There is an error in the sample...
The LCD is fine, the trigger I can see on the scope, but do not get echo. I put the...
The LCD is fine, the trigger I can see on the scope, but do not get echo. The put...
The LCD is fine, the trigger I can see on the scope, but do not get echo. The put...
No I have the same one sainsmart is, and figured is should work. But I just ran William's...
Hey Evan, I assume the other fellow did not send one. Might be easier if I send a...
I have the same display and want to get it running on an Arduino. Wasted a lot of...
Hi Mark, That was it. Need to remove the default, and turn on arduino and com8: Thanks....
Comments for sure and I would recommend giving the GPIO pins names as well. Like:...
Comments for sure and I would recommend giving the GPIO pins names as well. Like:...
Thanks for the help Frank, Turns out I kept getting bad trunk pulls. I had all the...
I just loaded 1.02 and same errors? Any other ideas what it might be?
Can I just unzip the greatcowbasic folder (in the hot_fix.zip) over my greatcowbasic...
I loaded fbc on a RaspPi and pulled from the trunk gcbasic.bas and the 4 .bi files....
Frank is right, apt-get install libncurses5-dev is required after the ./install.sh...
Will do. Can I just unzip the greatcowbasic over my greatcowbasic folder. I did not...
Thanks again Evan (and Kent), I looked for the new download and pulled the zip. I...
Thanks again Evan, I look for new download and pulled the zip. I will update it today....
FYI, the example on the http://gcbasic.sourceforge.net/help/ pulsein command was...
FYI, the example on the http://gcbasic.sourceforge.net/help/ pulsein command was...
Thanks for the input guys. Turned out the pulsein was wrong. Will look at the Roth...
I wrote a program to blink an LED after firing a ultra sonic module. I have not use...
I wrote a program to blink an LED after firing a ultra sonic module. I have not use...
Opps. Being using the compiler for years, rare problems if any. DUH! I guess I need...
Write a program to run a winch (like H bridge I guess). Post below. I get a compile...
Below are the updates from Hugh. I can pull the ASM into MPASM X and see the code...
Hugh, It ran perfect with no errors. Then I loaded MPASM X (bloatware for sure),...
Nobody? Maybe it is a GCB switch, I will check there.
This is my command line and my batch file that I use to make my .asm and .hex files...
This is my command line and my batch file that I use to make my .asm and .hex files...
This is my batch file that gcbasic calls when I compile and works like a champ. But...
Thanks Chuck, original code and your starttimer and it's blinking now. With 4 and...
Thanks Chuck, original code and your starttimer and it's blinking now. With 4 and...
Thanks Chuck, original code and your starttimer and it's blinking now. With 4 and...
Thanks Chuck, original code and your starttimer and it's blinking now. With 4 and...
Thanks Chuck, original code and your starttimer and it's blinking now. With 4 and...
@kent_twt4 The toggle threw an error about GPIO and being defined.
@Chuck. I get no LED on at all. I I do a simple wait 1 s, set LED on, wait 1 s, set...
Not sure if the PS is the problem, I pulled the commands from the GCBasic pdf file....
Not sure if the PS is the problem, I pulled the commands from the GCBasic pdf file....
Not sure if the PS is the problem, I pulled the commands from the GCBasic pdf file....
Not sure if the PS is the problem, I pulled the commands from the GCBasic pdf file....
Not sure if the PS is the problem, I pulled the commands from the GCBasic pdf file....