Page 1 of 1

Where To Put Raspberry Pi Software In The Forums

Posted: Wed Apr 06, 2016 12:02 pm
by Bottersnike
The title is fairly descriptive; I've written a piece of software for the pi (specifically an IDE for the BBC Micro:Bit) but I don't know where on the forums is best to create the thread. Any help would be appreciated, thanks.

Re: Where To Put Raspberry Pi Software In The Forums

Posted: Wed Apr 06, 2016 12:39 pm
by texy
Hi,
you can list the source code, the forum isn't really geared up for this?
Other Projects perhaps, but the best place would be github.

Texy

Re: Where To Put Raspberry Pi Software In The Forums

Posted: Thu Apr 07, 2016 6:20 am
by morphy_richards
I'd like to know more about the IDE or a link to githib.
Have you seen Mu? https://github.com/ntoll/mu

Re: Where To Put Raspberry Pi Software In The Forums

Posted: Thu Apr 07, 2016 7:04 am
by B.Goode
Perhaps the location of the thread isn't that important: if you flag it up for a Moderator with the Report This button they will move it if necessary.

Maybe Education/Teaching and Learning Resources?
Programming/General Programming Discussion?
Projects/Other Projects

That's for enabling discussion. But the source or download will probably need to live elsewhere.

Presumably all the web-based tools (Block Editor, Touch Develop, Code Kingdoms, MicroPython) can be used via a browser on the RPi [I really ought to check that.. ], so I'd be interested to see what your IDE adds. Mu is able to directly 'flash' the Hex to the device: can your IDE do the same?

Good luck with the project: I understand that Year 7's might be getting their uBits when they go back for the summer term, so this is an interesting time for coding in schools.

Re: Where To Put Raspberry Pi Software In The Forums

Posted: Thu Apr 07, 2016 8:24 am
by Bottersnike
B.Goode wrote: Presumably all the web-based tools (Block Editor, Touch Develop, Code Kingdoms, MicroPython) can be used via a browser on the RPi [I really ought to check that.. ], so I'd be interested to see what your IDE adds. Mu is able to directly 'flash' the Hex to the device: can your IDE do the same?
The reason it is different (other than being standalone and not browserware) is that it used the Micro:Bit-DAL library which is currently closed source but is the library that all the others are based around, so in a way it's the lowest level you can get (other than pure c++ without any libraries or writing in machine code. Also it is written in python and will be open source so anyone can edit and add things etc.
For uploading to the uBit, I search for a drive called "MICROBIT" then just copy the hex file made by yotta there. Atm it just looks in "/media/pi/" but I'm planning to search the "/dev" dir instead.

Re: Where To Put Raspberry Pi Software In The Forums

Posted: Thu Apr 07, 2016 9:27 am
by B.Goode
Thanks for the explanation. I look forward to being able to give it a test-drive.

Re: Where To Put Raspberry Pi Software In The Forums

Posted: Thu Apr 07, 2016 12:03 pm
by hippy
B.Goode wrote:Good luck with the project: I understand that Year 7's might be getting their uBits when they go back for the summer term, so this is an interesting time for coding in schools.
As Micro:Bits are given to school children, and they'll take them with them when they leave around July; doesn't this mean that, come September, there won't be many Micro:Bits left in schools ?

Unless someone comes up with plans to hand out or sell Micro:Bits next academic year; doesn't that make investment in Micro:Bits related tools relatively pointless ?

Re: Where To Put Raspberry Pi Software In The Forums

Posted: Thu Apr 07, 2016 12:16 pm
by morphy_richards
My understanding is that they will go on sale, and they will be very "affordable". Next year. Ish.
Makes sense, much of the investment has been footed by partners, Microsoft, Arm, Samsung, Technology Will Save Us etc.

Re: Where To Put Raspberry Pi Software In The Forums

Posted: Thu Apr 07, 2016 12:51 pm
by Bottersnike
hippy wrote:
B.Goode wrote:Good luck with the project: I understand that Year 7's might be getting their uBits when they go back for the summer term, so this is an interesting time for coding in schools.
As Micro:Bits are given to school children, and they'll take them with them when they leave around July; doesn't this mean that, come September, there won't be many Micro:Bits left in schools ?

Unless someone comes up with plans to hand out or sell Micro:Bits next academic year; doesn't that make investment in Micro:Bits related tools relatively pointless ?
I'm not in year 7 but my it guy at my school gave me one because he knows I love programming so really I'm writing the IDE for me.. But in all honestly, I think that schools will hold onto them and use them as in classroom resources like one might use scratch etc.

Re: Where To Put Raspberry Pi Software In The Forums

Posted: Thu Apr 07, 2016 2:56 pm
by hippy
Bottersnike wrote:But in all honestly, I think that schools will hold onto them and use them as in classroom resources like one might use scratch etc.
I expect you are right but that seems a little unfair on the students and not how the scheme has been promoted for the last few years.

I didn't intend to sound dismissive of your own project - There will be a million Micro:Bits out there and alternative tools will be useful. And it is great that it has inspired you to develop your IDE.

Re: Where To Put Raspberry Pi Software In The Forums

Posted: Thu Apr 07, 2016 3:04 pm
by scotty101
hippy wrote:
B.Goode wrote:Good luck with the project: I understand that Year 7's might be getting their uBits when they go back for the summer term, so this is an interesting time for coding in schools.
As Micro:Bits are given to school children, and they'll take them with them when they leave around July; doesn't this mean that, come September, there won't be many Micro:Bits left in schools ?

Unless someone comes up with plans to hand out or sell Micro:Bits next academic year; doesn't that make investment in Micro:Bits related tools relatively pointless ?
Seems that way.
1. The Microbits only just became available before the easter break.
2. Most teachers have no idea how to use them yet.
3. As a STEM ambassador, I have been asked to help them, but can't get access to the detailed teaching notes
4. By the time the teachers are able to help the year 7's use the Microbits, they will have left.

Total mess if you ask me.

Re: Where To Put Raspberry Pi Software In The Forums

Posted: Fri Apr 08, 2016 1:24 pm
by ben_nuttall
Link please!

Re: Where To Put Raspberry Pi Software In The Forums

Posted: Fri Apr 08, 2016 1:54 pm
by Bottersnike
ben_nuttall wrote:Link please!
I'm not on my pi atm and I'm a 4 hour flight away but ill get one when I can :)

Re: Where To Put Raspberry Pi Software In The Forums

Posted: Thu Apr 14, 2016 9:17 am
by Bottersnike
ben_nuttall wrote:Link please!
http://bottersnike.github.io/Micro-Pi/

There you go :)

Re: Where To Put Raspberry Pi Software In The Forums

Posted: Thu Apr 14, 2016 9:37 am
by B.Goode
Bottersnike wrote: http://bottersnike.github.io/Micro-Pi/

There you go :)
Fails on first run -
pi@rpi2b ~ $ sudo micro-pi
Traceback (most recent call last):
File "/usr/local/bin/micro-pi", line 2, in <module>
import micropi
File "/usr/local/lib/python2.7/dist-packages/micropi/__init__.py", line 1, in <module>
import micropi
File "/usr/local/lib/python2.7/dist-packages/micropi/micropi.py", line 5, in <module>
d = open('config.conf').read().split('\n')
IOError: [Errno 2] No such file or directory: 'config.conf'
pi@rpi2b ~ $
Why does micro-pi need to be run with superuser/admin privileges on RPi/Raspbian?

Re: Where To Put Raspberry Pi Software In The Forums

Posted: Thu Apr 14, 2016 9:44 am
by Bottersnike
It needs sudo because it's build environment is stored in the same dir as the __main__.py file (because I couldn't get it to work in the home dir) so I needs access to that dir :(

Re: Where To Put Raspberry Pi Software In The Forums

Posted: Thu Apr 14, 2016 9:48 am
by Bottersnike
B.Goode wrote: IOError: [Errno 2] No such file or directory: 'config.conf'
Hmm, appears that that setup.py hasn't packaged the config file... If you want to use it, donwload https://warehouse.python.org/packages/s ... Pi-0.2.zip the cd into ./micropi then create a file called config.conf and put

Code: Select all

darkHighlight: (50, 130, 50)
quickstart: True
mbitLocation: "/media/pi/MICROBIT"
lightbgColour: (36, 36, 36)
theme: "darkgreen"
highlightColour: (73, 182, 73)
backgroundColour: (36, 36, 36)
in it. Then run

Code: Select all

python micropi.py
(you won't need sudo). And don't use the settings menu what so ever...