Shop OBEX P1 Docs P2 Docs Learn Events
PGCC on Scientific Linux 6.0... — Parallax Forums

PGCC on Scientific Linux 6.0...

Kevin WoodKevin Wood Posts: 1,266
edited 2011-11-03 09:01 in Propeller 1
So far, everything is working okay on Scientific Linux 6.0 x64.

I took this LED blink example from another post as my starting point, and had to modify it for use with the demo board. I guess you could say that it's a "very thin" wrapper over Spin, so I brought it up a notch and duplicated some Arduino syntax just to mess around.

Now, before anybody launches into an Arduino tirade, I just picked that syntax because it was handy. I think that going forward, developing some higher-level libraries will be beneficial to easing users into the Propeller. I don't know what the current "official" plans are, and of course, everybody is free to create their own libraries, but some general discussion would probably be good.

I'm attaching a couple of files that people are free to use. I don't claim that they are the most idiomatic C, and there's room for improvement, but they are easy enough to understand, and work for my limited testing. They compile with either a .C or .CPP extension.

Once again, thanks everybody that's been involved in making this project happen.
c
c
726B
c
c
898B

Comments

  • jazzedjazzed Posts: 11,803
    edited 2011-11-03 09:01
    Kevin Wood wrote: »
    So far, everything is working okay on Scientific Linux 6.0 x64.
    Thanks Kevin. It's good to hear things are working for you.

    Your examples are good.

    I've wondered if maybe we should include HIGH(iopin) and LOW(iopin) similar to PBASIC in propeller.h.

    We would use iopin instead of simply pin because the pins don't map exactly and we could use similar syntax for P2. This is very simple to do. There may be others like IN(iopin) ... I'll have a closer look at it. I'm working on extending the propeller.h macros and the propeller support library today, so adding HIGH and LOW would be easy.

    Cheers,
    --Steve
Sign In or Register to comment.