Search found 2044 matches
- Aug 17, 2019 23:00
- Forum: Hardware Interfaces / Communication
- Topic: FreeBasic communication with Arduino logic error?
- Replies: 57
- Views: 27113
Re: FreeBasic communication with Arduino logic error?
/* Well, I've come to a conclusion. I don't think a serial connection is suitable for a binary clock. I can now pass the data correctly, but unpredictability of the timing of when the buffer is actually full isn't reliable enough for something like a clock. However, I have learned a ton. I can make ...
- Aug 16, 2019 2:04
- Forum: Hardware Interfaces / Communication
- Topic: FreeBasic communication with Arduino logic error?
- Replies: 57
- Views: 27113
Re: FreeBasic communication with Arduino logic error?
Thanks dude. This is awesome. I need to take some time to wrap my head around it. I still don't understand why it isn't over when if(serial) is over... but all I can do is learn what's going on. Thanks again. :)
EDIT:
At the time of this post, I haven't even read most of it...
EDIT:
At the time of this post, I haven't even read most of it...
- Aug 15, 2019 20:43
- Forum: Hardware Interfaces / Communication
- Topic: FreeBasic communication with Arduino logic error?
- Replies: 57
- Views: 27113
Re: FreeBasic communication with Arduino logic error?
Here is my Arduino sketch... //This is the Arduino tutorial for daisy-chaining shift registers that I followed... //https://www.marginallyclever.com/2017/02/daisy-chain-74hc595n-shift-registers/ #include "MessageBuffer.h" static MessageBuffer msg; const int SER = 12; // (595 pin 14)serial ...
- Aug 15, 2019 19:34
- Forum: Hardware Interfaces / Communication
- Topic: FreeBasic communication with Arduino logic error?
- Replies: 57
- Views: 27113
Re: FreeBasic communication with Arduino logic error?
I'll post the arduino code when I get home... But, yeah, I'm iterating through the list, and I seem to keep getting garbage. I didn't know about serial monitor... Thanks!
- Aug 14, 2019 23:14
- Forum: Hardware Interfaces / Communication
- Topic: FreeBasic communication with Arduino logic error?
- Replies: 57
- Views: 27113
Re: FreeBasic communication with Arduino logic error?
Hey guys, I have another question... more like a problem I'm unable to solve myself, so I'm sorry if this is a lengthy post. I've wired up a binary clock led display using some SN74HC595N IC's as shift registers because this project requires more pins than the Arduino offers. To get to the meat of i...
- Aug 12, 2019 22:27
- Forum: Hardware Interfaces / Communication
- Topic: FreeBasic communication with Arduino logic error?
- Replies: 57
- Views: 27113
Re: FreeBasic communication with Arduino logic error?
Thanks for doing all of this, it's extremely helpful. I'm a total beginner at communicating with another device this way, so please bear with me... I have a few questions... and then I'll probably have more. lol So, I can only get coms to work, if I use COM3. Is there an explanation for this? At fir...
- Aug 04, 2019 15:49
- Forum: Community Discussion
- Topic: Audio library for FreeBasic - Features
- Replies: 77
- Views: 19337
Re: Audio library for FreeBasic - Features
a simple SID playing routine where nice for my project, but i think open and play MP3 files easy where a must have if it is not to mutch work. No. I think MP3 should stay outside of the SFX library, just as JPG are not included in the GFX library. also a easy to use 3D sound positioning/playing whe...
- Jul 30, 2019 22:23
- Forum: Hardware Interfaces / Communication
- Topic: FreeBasic communication with Arduino logic error?
- Replies: 57
- Views: 27113
Re: FreeBasic communication with Arduino logic error?
Interesting... I've been toying a bit with Arduino again as well. I've never attempted to use it in conjunction with FB before, though. It looks like this gives me the perfect excuse! lol Anyway, I have extremely modest goals, to be quite honest. It's all just for fun, and to keep my mind active aft...
- Jul 27, 2019 21:56
- Forum: Projects
- Topic: Another binary clock...
- Replies: 0
- Views: 10923
Another binary clock...
I made this because I was bored, but it looks pretty cool to me, so I decided to post it. I might make an actual mechanical with with an Arduino. :p #include once "fbgfx.bi" using FB const as single pi = 3.1415926, pi2 = pi*2, pihalf = pi/2 declare sub button( byref x as integer, byref y a...
- Jul 21, 2019 20:05
- Forum: Projects
- Topic: DOD.bas Dungeon of Doom
- Replies: 3
- Views: 5428
Re: DOD.bas Dungeon of Doom
You may wish to check Richard Clark's website : http://users.freebasic-portal.de/rdc/index.html He has an excellent tutorial "Let's build a roguelike" and several FreeBASIC programs. This is worth repeating. It's just awesome stuff from a really smart guy. In any event, do you know about ...
- Jun 03, 2019 22:13
- Forum: Libraries
- Topic: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)
- Replies: 72
- Views: 23317
Re: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)
Heya... I did some tests and discovered that the popping artifact has nothing to do with FBSound. As far as I can tell, there is an issue with my audio hardware. Even with professional audio recording/editing software, the buffers eventually get corrupted. Sorry for the nonsense. lol
- May 26, 2019 22:57
- Forum: Game Dev
- Topic: Simple goofy game...
- Replies: 5
- Views: 6208
Re: Simple goofy game...
What happened to the game? I saw it, but I didn't have FB near me... I wanted to try it.
- May 23, 2019 22:36
- Forum: Libraries
- Topic: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)
- Replies: 72
- Views: 23317
Re: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)
Ok. Thanks again. Get some sleep. You've already opened doors for me. :)
- May 23, 2019 22:19
- Forum: Libraries
- Topic: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)
- Replies: 72
- Views: 23317
Re: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)
I can post the sound, if you would like to experiment with it. I'll post the whole program eventually, but it isn't really a game yet... It isn't that impressive right now, and you can't even die yet. :p
- May 23, 2019 22:15
- Forum: Libraries
- Topic: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)
- Replies: 72
- Views: 23317
Re: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)
Well, what I did was create the thrust sound, double the length, copy the first half and paste it in reverse at the midpoint. It loops seamlessly, but maybe the trick is to stop it at an endpoint?