Search found 593 matches
- 25 Aug 2021 06:08
- Forum: mikroBasic PRO for PIC General
- Topic: nRF T click example
- Replies: 1
- Views: 604
nRF T click example
Hello, I bought the two clicks and i want to use one transmitter one receiver, but on your libstock example for pic basic pro you have only one program. How i can use only one program for transmitter and receiver. Please help. Here is your original code: '* Project Name: nRF T click '* Company: (c) ...
- 20 Jul 2021 16:03
- Forum: mikroBasic PRO for PIC General
- Topic: Keypad 4x4 confusion; kp declared byte but print as chr
- Replies: 11
- Views: 1634
Re: Keypad 4x4 confusion; kp declared byte but print as chr
Thank you very much.
Now i got it.
Now i got it.
- 20 Jul 2021 15:24
- Forum: mikroBasic PRO for PIC General
- Topic: Keypad 4x4 confusion; kp declared byte but print as chr
- Replies: 11
- Views: 1634
Re: Keypad 4x4 confusion; kp declared byte but print as chr
dim LCD_RS as sbit at LATB4_bit LCD_EN as sbit at LATB5_bit LCD_D4 as sbit at LATB0_bit LCD_D5 as sbit at LATB1_bit LCD_D6 as sbit at LATB2_bit LCD_D7 as sbit at LATB3_bit LCD_RS_Direction as sbit at TRISB4_bit LCD_EN_Direction as sbit at TRISB5_bit LCD_D4_Direction as sbit at TRISB0_bit LCD_D5_Dir...
- 20 Jul 2021 15:03
- Forum: mikroBasic PRO for PIC General
- Topic: Keypad 4x4 confusion; kp declared byte but print as chr
- Replies: 11
- Views: 1634
Re: Keypad 4x4 confusion; kp declared byte but print as chr
I miss something.
No conversion to text ?
No conversion to text ?
Code: Select all
p as byte
lcd_out(1,1,p) return an error
- 20 Jul 2021 14:22
- Forum: mikroBasic PRO for PIC General
- Topic: Keypad 4x4 confusion; kp declared byte but print as chr
- Replies: 11
- Views: 1634
Re: Keypad 4x4 confusion; kp declared byte but print as chr
Thank you hexreader.
- 20 Jul 2021 14:20
- Forum: mikroBasic PRO for PIC General
- Topic: Keypad 4x4 confusion; kp declared byte but print as chr
- Replies: 11
- Views: 1634
Re: Keypad 4x4 confusion; kp declared byte but print as chr
@Thomas
It is difference when you want to print to lcd
lcd_chr (1,1,"c")
you cannot write on LCD a byte unless you convert it, but you can write a char.
It is difference when you want to print to lcd
lcd_chr (1,1,"c")
you cannot write on LCD a byte unless you convert it, but you can write a char.
- 19 Jul 2021 19:57
- Forum: mikroBasic PRO for PIC General
- Topic: convert a string of 7 ascii characters in a word
- Replies: 2
- Views: 617
Re: convert a string of 7 ascii characters in a word
Thank you Zan.
It did not passed through my mind to do that.
I will try.
What i want to achieve is to record a master code to eeprom when the user press the keys, and later read from eeprom and compare with the user entry.
I will try your suggestion.
Thank you.
It did not passed through my mind to do that.
I will try.
What i want to achieve is to record a master code to eeprom when the user press the keys, and later read from eeprom and compare with the user entry.
I will try your suggestion.
Thank you.
- 19 Jul 2021 17:32
- Forum: mikroBasic PRO for PIC General
- Topic: Keypad 4x4 confusion; kp declared byte but print as chr
- Replies: 11
- Views: 1634
Keypad 4x4 confusion; kp declared byte but print as chr
On keypad 4x4 the variable kp is declared as byte. But later in the program is printed on lcd as chr program Keypad_Test dim kp, cnt, oldstate as byte txt as char[7] and for print is like bellow Lcd_Chr(1, 10, kp) ' Print key ASCII value on LCD Why Here is the whole code program Keypad_Test dim kp, ...
- 17 Jul 2021 18:55
- Forum: mikroBasic PRO for PIC General
- Topic: convert a string of 7 ascii characters in a word
- Replies: 2
- Views: 617
convert a string of 7 ascii characters in a word
Hello, I am using the keypad 4x4 (attached) from mikroe. I managed to change and display each key on the row 3 one after other. I display 7 key and then counter start to zero and i overwrite the key i display before. Each time after key 7, i start from position one. What i want to do is to convert t...
- 16 Jul 2021 18:48
- Forum: mikroBasic PRO for PIC General
- Topic: Display a counter byte on LCD
- Replies: 2
- Views: 588
Re: Display a counter byte on LCD
Thank you very much
Works like a charm.
I did not know i have to convert the byte.
Thank you
Works like a charm.
I did not know i have to convert the byte.
Thank you
- 16 Jul 2021 17:28
- Forum: mikroBasic PRO for PIC General
- Topic: Display a counter byte on LCD
- Replies: 2
- Views: 588
Display a counter byte on LCD
Hello, I have a counter which increment each time i press i key on EasyPic V7 I want to display that counter on the LCD attached, but lcd_out give me an error and lcd_chr just give me a garbage display. The counter does not go over 255, it just roll over to 0 and start again. How i can display the v...
- 16 Aug 2020 18:06
- Forum: mikroBasic General
- Topic: 3X4 membrane keypad
- Replies: 13
- Views: 3616
Re: 3X4 membrane keypad
Thank you for help but does not explain.
Do not bother.
I will try to make a scaner for me and at least i know from where i get the value.
One column high , then scan the rows.
Then next column and so on.
Mikroe works, but i must know how, and i do not have access to their library.
Do not bother.
I will try to make a scaner for me and at least i know from where i get the value.
One column high , then scan the rows.
Then next column and so on.
Mikroe works, but i must know how, and i do not have access to their library.
- 16 Aug 2020 16:51
- Forum: mikroBasic General
- Topic: 3X4 membrane keypad
- Replies: 13
- Views: 3616
Re: 3X4 membrane keypad
Hello hexreader, I have one more question for you as you know this program. From where Mikroe come up with the kp value ? What is the algorithm to find the value ? Second question is about character # displayed twice in the code for case 12 at start and case 15 at the end. select case kp case 12 kp ...
- 13 Aug 2020 20:41
- Forum: mikroBasic General
- Topic: 3X4 membrane keypad
- Replies: 13
- Views: 3616
Re: 3X4 membrane keypad
Thank you very much hexreader.
I works like a charm on my 3X4 membrane keypad.
I works like a charm on my 3X4 membrane keypad.
- 13 Aug 2020 01:05
- Forum: mikroBasic General
- Topic: 3X4 membrane keypad
- Replies: 13
- Views: 3616
Re: 3X4 membrane keypad
Which proves that i did not read datasheet properly, and also i did not go through my program in deep.
Thank you 1000 times hexreader.
Thank you 1000 times hexreader.