no, it is not, because if I add GOSUB statement, it is being triggered on IF-THEN condition only.
Type: Posts; User: CuriousOne; Keyword(s):
no, it is not, because if I add GOSUB statement, it is being triggered on IF-THEN condition only.
Found another.
Here is sample code, both variants should work same, but they don't
if ticker>150 and ard<140 and atrig=0 then
ticker=1
atrig=1
endif
Tried some lower speeds with MAX7219 and scan rate definitely causes issues - the moment digits are just going off being registered by high speed camera, so it is hard to guess what is displayed...
Thanks, I was thinking about that, but just with external transistor, which will drive common pin for 7 segment....
Well, MAX7219 datasheet says 10mhz clock, that is way faster than 50khz, so I guess, since it supports that, this means it can also display with that speed, right?
Regarding the current project,...
This just will be the visual counter, it will show on display numbers from 1 to 9999. The question is, how fast this update can be made.
I'd prefer it to count from 1 to 9999 in 0.1-0.2 seconds.
Hello.
I'm building a project, very fast counter using MAX7219 and 4 digit 7 segment display. It's image will be filmed by high speed camera. So I'm curious, since picbasic communicates with MAX7219...
I made a typo, putting = instead of -
hpwm 2,rmd*rmd=1,20000
This statement does not produce any errors, as it should. Also, RMD value remains the same :D
Thanks!
Nice to see anyone doing new PBP code in 2021.
What are the advantages over the MAX7219 modules?
A little off-topic question.
Say I've built something using PIC, and want it's firmware to be user upgradeable without specific hardware, such as pickit or standalone programmer.
As I know, some...
It is not my computer where PBP is installed, it belongs to company, so have no idea where any other remaining copies are installed or whatsoever. Regarding my laptop, it is not actually a laptop,...
Well as I've said previously, sometimes I have no access to machine where PBP is installed. I tried to get a student license for my laptop, but it never works.
So sometimes, I write code on the...
So my question will be split into things like
IF A=1 AND B<6
OR B<6 AND A=2
I want to make it such way, than if A=2, then it would not care about whenever B is less than 6 or not.
Nope, it is still on the way, will get it in week or so.
Hello.
Say here is a logical structure like this
IF A=1 AND B<6 OR A=2 THEN
The first part is clear, if a=1 and b is less than 6, then do something
but what about OR?
when I add that OR...
I have no issues with generating the sound, I'm having issues with automating it's import into PBP. In fact, I need more a PC software, which will parse midi file and convert it to byte sequence.
Hello.
I'm making an LED clock for my daughter, and she wants for alarm tune to be "never gonna give you up", played in 1 channel beeper sound.
I have appropriate midi, and by looking into music...
And yes, CNT=1 should be added in the beginning, or absolutely unexpected behavior will be generated (just tested) :D
Yes, thanks!
On spectrum, I was doing this by changing the sign of increment variable, but since in PBP we have no negative numbers....
Hello.
There is a some loop, which monitors keypress, updates display, etc.
Also in loop is variable, which should increase from 1 to 100 and then decrease from 100 to 1.
Is there any way to do it...
Will take a look tomorrow...
Meanwhile, added decimal point, C and F sign support...
But I still have an issue - why reading from a bit array from arbitrary position (not byte justified) returns garbage?
Thanks!
I also ordered it, see who's will arrive faster :)
And this is proof of my code working :D
So if I understood correctly, there is no HSHIFTOUT statement, like HSEROUT ?
9002
Well, I'm designing fonts for last 30 years, so no surprise mine is better :D
proof of concept of what?
Any code was posted?