test
↧
New WebSite : just test : REPLY
↧
New WebSite : just test : REPLY
test :wink:
↧
↧
BASCOM-AVR : SSD1306 & SH1106 SPI Oled bgf picture display : REPLY
Hello,
For the SH1106-SPI Display you can use this LIB
↧
BASCOM-AVR : lbyte a reserved word ? : NEWTOPIC
This prog give an error 353 lbyte is a reserved word when it is compiled with 2.0.8.0
$regfile = "m2560def.dat"
$crystal = 16000000
$hwstack = 350 '250
$swstack = 350 '250
$framesize = 500
Dim Lbyte As Byte , Jbyte As Byte
Lbyte = 100
For Jbyte = 100 To 1
Lbyte = Lbyte - 1
Next
In my prg is a old habit to name the generic variables with the type jbyte, kword, Along etc...
so in my biiiig program for my astronomic clock I use a lot of lbyte :smt084 I wrotethe prog with 2.0.7.9 and I have to check all .inc
:cry:
jp
:wink:
[b:a390c65375][color=red:a390c65375](BASCOM-AVR version : 2.0.8.0 , Latest : 2.0.7.8 )[/b:a390c65375][/color:a390c65375]
↧
BASCOM-AVR : lbyte a reserved word ? : REPLY
Yes lbyte and hbyte are asm functions, and reserved, sorry.
↧
↧
BASCOM-AVR : lbyte a reserved word ? : REPLY
Hello Mark,
That is not a big problem. I will change it. but I don't see that in the help about "reserved words"
Why the 2.0.8.0 is not the latest version in the update link ?
JP
:wink:
↧
BASCOM-AVR : lbyte a reserved word ? : REPLY
I will add them.
yes, the version is another story.
I will explain it later, but it is because there will be some changes regarding the update process.
↧
BASCOM-AVR : lbyte a reserved word ? : REPLY
@JP Try grat Bascom feature "Replace"
Hit CTRL+R together. In new opened window, in field "Text to find" type "Lbyte" and "Replace with" type something new, like "Low_byte"
Also select radiobuttons "Entire scope" and "Global"
Then click "Replace All" and[b:9c17c327b6] You dont miss to replace any of old "Lbyte" instance[/b:9c17c327b6] :D
I think this is a clever solution :D
I use this function often when I want to change variable name in whole code when I think new name better fit/describe my variable.
Bonne journée :D
↧
BASCOM-AVR : lbyte a reserved word ? : REPLY
thanks EDC,
Yes I know how to change variable name, but in a big program you need to change it in all files .Inc and this can of generic variable are use in local so often...
but anyway i did it.
So now i'm starting ASTRO III a new and big astronomic clock with at least 5 screen. see it next year !
JP :wink:
↧
↧
BASCOM-AVR : Storing word variables in Xmega EEPROM : NEWTOPIC
I am using the xmega128A4U device.
I need to store over a hundred word variables in eeprom.
I can't find anything about this in the help files. Do I have to split the word into two bytes, store in two separate EEPROM locations, then upon reading it back, reassemble it into a word? Seems a very slow way to handle stored variables.
Is there any faster way to handle this? I need to do this as efficiently [time-wise] as possible.
[b:d73894348b][color=red:d73894348b](BASCOM-AVR version : 2.0.7.8 )[/b:d73894348b][/color:d73894348b]
↧
BASCOM-AVR : Storing word variables in Xmega EEPROM : REPLY
Hi George,
Something like this:
[code:1:ee8304304c]
Config Eeprom = Mapped
Dim Myword1 As Eram Word
Dim Myword2 As Eram Word
Dim Myword3 As Eram Word
[/code:1:ee8304304c]
↧
Share your working BASCOM-AVR code here : attiny13 transmiiter and receiver : NEWTOPIC
As a learning project I wrote this code without any immediate use in mind.
Just wanted to see what would fit in an Avr with limited resources such as an attiny13.
Perhaps a clever person can put it to real use. :)
↧
BASCOM-AVR : Storing word variables in Xmega EEPROM : REPLY
HI Evert:
I tried this:
Dim myword1 As Eram Word
Dim myword2 As Eram Word
myword1 = 33123
writeeeprom myword1, 10
readeeprom myword2, 10
lcd myword2
I get the following errors
Error : 253 Line : 41 ERAM variable can not be used [MYWORD2] , in File : J:Current Business____Projects_57 - Phone Hearing LossPrototypeCodeXmega128A4U code - ver A1B.bas
Error : 42 Line : 42 Numeric parameter expected [MYWORD2] , in File : J:Current Business____Projects_57 - Phone Hearing LossPrototypeCodeXmega128A4U code - ver A1B.bas
Thoughts?
↧
↧
BASCOM-AVR : Storing word variables in Xmega EEPROM : REPLY
I figured out how to handle this. Thank you! It works.
To save to Eeprom, do I simply set address for every OTHER location? Like location 2,4,6,8?
↧
BASCOM-AVR : Storing word variables in Xmega EEPROM : REPLY
forget about writeeeprom and readeeprom.
There is no need to know the address in memory.
[code:1:06d102225c]Dim Ar(10) As Eram Word
Dim W As Word
Dim J As Byte
For J = 1 To 10
W = J
Ar(j) = W
Next
For J = 1 To 10
W = Ar(j)
Print W
Next
[/code:1:06d102225c]
A word will use 2 bytes automatic.
Just remember : you need to use an SRAM variable to read/write to an ERAM variable. and they must be of the same data type.
↧
Share your working BASCOM-AVR code here : attiny13 transmiiter and receiver : REPLY
Hello mcguinn
Great project ! Thanks for sharing.
Code well documented, so we all can learn from your learning project.
↧
BASCOM-AVR : SSD1306 & SH1106 SPI Oled bgf picture display : REPLY
[img:ece96bcade]https://www.mcselec.com/userpix/24260_20170325_140508_1.jpg[/img:ece96bcade]
↧
↧
BASCOM-ARDUINO : Arduino Leonardo as a password storage device in a PS/2-line : NEWTOPIC
Hello,
I am new to Bascom-AVR.
My project is to add the Arduino Leonardo in a PS/2-line to use it as a password storage device.
Is there any Bascom-AVR code already published ?
ICould it be possible to drive it using a 4x4 keypad ?
Thanks in advance
Regards
Theo
↧
BASCOM-AVR : encoder : REPLY
Thank you duval i have a lot to try out but i understand it a little better now
↧
Share your working BASCOM-AVR code here : ILI9341 with SW/HW SPI, 8/16 Bit parallel mode : REPLY
Hello Joakim,
I am currently updating and bugfixing the library, but I can't verify any problems with using Byval instead of Byref for the text routines.
Byval has the advantage to pass string constants as well as variables to the text routine, which creates a local string variable with the required length in the frame space to hold the value:
[code:1:da7ad8b1fb]Lcd_text "Hello World" , 0 , 0 , Color_white , Color_black
Dim Mystring As String * 12
Mystring = "Hello World"
Lcd_text Mystring , 0 , 0 , Color_white , Color_black
[/code:1:da7ad8b1fb]
While using Byref, only string variables are allowed as parameter.
Have you already tried increasing your (frame) stack sizes?
Best regards
↧