Shop OBEX P1 Docs P2 Docs Learn Events
[Deleted] — Parallax Forums

[Deleted]

Private19872Private19872 Posts: 61
edited 2022-02-06 15:58 in Propeller 1
[Deleted]

Comments

  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2014-06-27 07:27
    Very nice.

    Do you mind if I include it in the next official release of FemtoBASIC color? I'm getting ready to release a maintance release.

    Jeff
  • Private19872Private19872 Posts: 61
    edited 2014-06-27 07:33
    No problem. I rewrote mine from the ground up so it may not be completely compatible, but you're welcome to work with it.
  • Dave HeinDave Hein Posts: 6,347
    edited 2014-06-27 08:20
    The zip file seems to be missing the top object, or did you incorporate it into one of the drivers?
  • Private19872Private19872 Posts: 61
    edited 2014-06-27 08:30
    Dave Hein wrote: »
    The zip file seems to be missing the top object, or did you incorporate it into one of the drivers?

    The file you should be looking for is FloatBasicTV. I should have renamed it when I sent it out, but for easier testing I wrote the original using PST as the display and so I named the other one FloatBasicTV.
  • PublisonPublison Posts: 12,366
    edited 2014-06-27 08:36
    The file you should be looking for is FloatBasicTV. I should have renamed it when I sent it out, but for easier testing I wrote the original using PST as the display and so I named the other one FloatBasicTV.

    FloatBasicTV is missing from the Zip file.
  • Private19872Private19872 Posts: 61
    edited 2014-06-27 08:44
    Ok, I'm sorry about the problem. For whatever reason whenever I try to open the folder I store programs in with propeller tool, it's hidden. When I selected everything the program didn't show up and I didn't notice. I switched out the attachment so it should work this time.
  • PublisonPublison Posts: 12,366
    edited 2014-06-27 08:48
    Looks better!

    In the future, it's better to use the File>Archive>Project in the Propeller tool. If you run that from the Top Object, that will include everything in one Zip file.
  • Private19872Private19872 Posts: 61
    edited 2014-06-27 08:49
    Publison wrote: »
    Looks better!

    In the future, it's better to use the File>Archive>Project in the Propeller tool. If you run that from the Top Object, that will include everything.

    Wow! Thanks. I can't believe I never noticed that. :smile:
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-06-27 10:19
    Basic with Floating-point!!! That's a great contribution to the Propeller. Thanks.
  • bruceebrucee Posts: 239
    edited 2014-06-27 10:25
    The print takes the longest here, can you run the loop from 0 to 1,000,000 just incrementing?

    And in this case is x a floating point or integer by default?
  • Private19872Private19872 Posts: 61
    edited 2014-06-27 10:25
    Basic with Floating-point!!! That's a great contribution to the Propeller. Thanks.
    No problem! Honestly, as long as the propeller has been around, I'm surprised nobody else has done it until now.
  • Private19872Private19872 Posts: 61
    edited 2014-06-27 10:27
    brucee wrote: »
    The print takes the longest here, can you run the loop from 0 to 1,000,000 just incrementing?

    And in this case is x a floating point or integer by default?

    You certainly could run the program without the print function. Also, my interpreter treats all numbers in the program as floating points (excluding line numbers) even if it has to round them for things like the OUT command.
  • BeanBean Posts: 8,129
    edited 2014-06-27 12:15
    Just wondering how do you handle "X = INA" ? since the float cannot hold all 32 bits ?

    Bean
  • Private19872Private19872 Posts: 61
    edited 2014-06-27 12:21
    Bean wrote: »
    Just wondering how do you handle "X = INA" ? since the float cannot hold all 32 bits ?

    Bean

    I have a function "in()" where you put the value between the parentheses of the pin you want to input and it will return a 1 or a 0. So if you wanted the input for pin 23 stored in x, you would do:
    x = in(23)
Sign In or Register to comment.