Forum Update - Announcement about May 10th, 2018 update and your password.

PropBasic Libraries to support the Badge WX (#20300)

BeanBean Posts: 7,914
The Parallax Badge WX (#20300) represent a great value at only $50. https://www.parallax.com/product/20300
I plan to create a set of library functions to allow PropBasic programmers to use it.
This is a fairly large project and will take many hours of my time. I hope others will benefit from it.

There are not many libraries for PropBasic and that is kind of my fault, as I haven't given many examples.

I have broken the libraries down as follows:
OLED
LEDS - RGB and Status
BUTTONS - Rocker and Touch
I2C (ACCEL, EEPROM)
AUDIO
VIDEO
IR
SD
WIFI

I will start with easier ones (LEDS, BUTTONS, etc) and work towards the harder ones (WiFi, SD, etc).
Along the way I hope PropBasic users will learn how to make their own libraries.

Bean
logo.png?91518163160380889
Esterline Research & Design
thitt@esterlineresearch.com

We offer consulting on the following areas of expertise:
- Parallel Frequency Measurement Equipment
-Frequency Control Products
-Micro-Controller/Processor Products
-Oscillator Testing and Automation

Comments

  • 13 Comments sorted by Date Added Votes
  • BeanBean Posts: 7,914
    edited September 10 Vote Up0Vote Down
    Sept 10, 2018
    I have ordered my Badge WX but is hasn't arrived yet.
    In the meantime I am planning out the libraries and create the SUBs and FUNCs that I think I will need.
    As soon as I can test the most basic libraries I will post them.

    First order of business: LEDs and Buttons.

    Bean
    logo.png?91518163160380889
    Esterline Research & Design
    thitt@esterlineresearch.com

    We offer consulting on the following areas of expertise:
    - Parallel Frequency Measurement Equipment
    -Frequency Control Products
    -Micro-Controller/Processor Products
    -Oscillator Testing and Automation

  • This is great news Bean.

  • Hey Bean,

    Shame on me for not having explored this but my needs are quite simple (real-time, determinism, etc.):

    Being able to interface with existing PASM objects would open up all kinds of possibilities for PropBasic.
    PropBASIC ROCKS!
  • BeanBean Posts: 7,914
    edited September 10 Vote Up0Vote Down
    Mickster,
    Most PASM drivers can be enclosed in ASM...ENDASM and converted pretty easy.
    It is the .spin files that are much harder as PropBasic cannot call .spin code.
    Either way, you are much better off re-writing as a library because it will (if written properly) remove dead code from the library.

    There are a couple libraries on OBEX for PropBasic (TV, VGA2, VGA4) that you can look at to get an idea how they work.

    Bean
    logo.png?91518163160380889
    Esterline Research & Design
    thitt@esterlineresearch.com

    We offer consulting on the following areas of expertise:
    - Parallel Frequency Measurement Equipment
    -Frequency Control Products
    -Micro-Controller/Processor Products
    -Oscillator Testing and Automation

  • Thank you a bunch, Terry. We published only BlocklyProp examples because this is the easiest way for non-programmers to get a badge running. But we realize that there's a whole lair of developers, hackers, and experimenters that want to program in Spin or C. We are thankful for your contribution. When you're ready, let me know and I'll put any archives on the product page for download.

    - Ken

  • Bean
    Sure is good to see that you are finding the time for, Propbasic. I have used Propbasic whenever I have a something for the P1, and since it was released.

    I was just looking at Johnathan Dummer's SD code and thinking about porting it across to Propbasic when I
    came across this thread. On the other hand it might be better to look at extending your despatcher code, and provide examples so that folks could utilise some of the objects in the OBEX. Time to do this stuff is always a problem.

    BTW I have posted to earlier Propbasic threads under my old username Ron Sutcliffe, but when I upgraded my system here
    I decided the change a few things.

    Ron

    Manche, France
  • rsut wrote: »
    Bean
    Sure is good to see that you are finding the time for, Propbasic. I have used Propbasic whenever I have a something for the P1, and since it was released.

    I was just looking at Johnathan Dummer's SD code and thinking about porting it across to Propbasic when I
    came across this thread. On the other hand it might be better to look at extending your despatcher code, and provide examples so that folks could utilise some of the objects in the OBEX. Time to do this stuff is always a problem.

    BTW I have posted to earlier Propbasic threads under my old username Ron Sutcliffe, but when I upgraded my system here
    I decided the change a few things.

    Ron

    Manche, France

    Coincidentally, this very SD driver is what just prompted my question to Bean.
    It's a bit hazy now but I remember a thread about trying to use PropBasic with an SD card and I wondered why not use one of the existing objects.
    PropBASIC ROCKS!
  • Your on-going selfless contributions are sincerely appreciated, and your timing is always impeccable!

    I was just kicking around the idea of playing with PropBASIC libraries. When work travel offers small gifts of time (i.e. flight delays), this seems like a better use of time than the alternatives (staring at the news or drinking more beer ... mmm). I just installed the Propeller IDE on my work laptop and moved some files into the cloud. My return trip on Thursday connects in Charlotte, so I may be gifted with lots of time thanks to Florence.
  • I suspect the SD card is going to be the hardest library to write.
    Seems they are really picky, and some cards act differently so it is a challenge.
    But I really should have written it a long time ago, I just never needed SD support for my projects.
    I was going to start with Kye's SD card drive, but maybe I'll look at Mr. Dummer's code too.

    Bean
    logo.png?91518163160380889
    Esterline Research & Design
    thitt@esterlineresearch.com

    We offer consulting on the following areas of expertise:
    - Parallel Frequency Measurement Equipment
    -Frequency Control Products
    -Micro-Controller/Processor Products
    -Oscillator Testing and Automation

  • In my collection of PropBASIC libraries, I have this SD variation ... https://forums.parallax.com/discussion/122615/propbasic-sd-card/p1

    Ironically, I also have not had a need, yet included it on my prototyping PCB just in case. I have not even tested the one linked above years later.
  • Great news, Bean!
    Whit+

    "We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
  • After updating SimpleIDE to the latest version, programming the Badge WX over WiFi is a piece of cake.

    Pressing the power-button 6 times to lock programming works great.

    I already have the LED and Button libraries working.
    When I get a little further along I will start posting the Library files.

    I'd like to hear from some users that have a Badge WX that would be interested in Beta Testing.
    Let me know in this thread.

    Bean
    logo.png?91518163160380889
    Esterline Research & Design
    thitt@esterlineresearch.com

    We offer consulting on the following areas of expertise:
    - Parallel Frequency Measurement Equipment
    -Frequency Control Products
    -Micro-Controller/Processor Products
    -Oscillator Testing and Automation

  • I have posted a little pong demo program using the first three libraries in the first post.

    It has the libraries for the OLED, Buttons, and Audio

    Bean
    logo.png?91518163160380889
    Esterline Research & Design
    thitt@esterlineresearch.com

    We offer consulting on the following areas of expertise:
    - Parallel Frequency Measurement Equipment
    -Frequency Control Products
    -Micro-Controller/Processor Products
    -Oscillator Testing and Automation

Sign In or Register to comment.