User avatar
Bottersnike
Posts: 52
Joined: Wed Apr 06, 2016 7:17 am
Contact: Website

Where To Put Raspberry Pi Software In The Forums

Wed Apr 06, 2016 12:02 pm

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.
Micro:Pi is an (almost) fully fledged IDE for programming a BBC Micro:Bit using C++. Go check it out at https://bottersnike.github.io/Micro-Pi

texy
Forum Moderator
Forum Moderator
Posts: 5160
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Where To Put Raspberry Pi Software In The Forums

Wed Apr 06, 2016 12:39 pm

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
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

User avatar
morphy_richards
Posts: 1603
Joined: Mon Mar 05, 2012 3:26 pm
Location: Epping Forest
Contact: Website

Re: Where To Put Raspberry Pi Software In The Forums

Thu Apr 07, 2016 6:20 am

I'd like to know more about the IDE or a link to githib.
Have you seen Mu? https://github.com/ntoll/mu

User avatar
B.Goode
Posts: 8987
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Where To Put Raspberry Pi Software In The Forums

Thu Apr 07, 2016 7:04 am

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.

User avatar
Bottersnike
Posts: 52
Joined: Wed Apr 06, 2016 7:17 am
Contact: Website

Re: Where To Put Raspberry Pi Software In The Forums

Thu Apr 07, 2016 8:24 am

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.
Micro:Pi is an (almost) fully fledged IDE for programming a BBC Micro:Bit using C++. Go check it out at https://bottersnike.github.io/Micro-Pi

User avatar
B.Goode
Posts: 8987
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Where To Put Raspberry Pi Software In The Forums

Thu Apr 07, 2016 9:27 am

Thanks for the explanation. I look forward to being able to give it a test-drive.

hippy
Posts: 6245
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Where To Put Raspberry Pi Software In The Forums

Thu Apr 07, 2016 12:03 pm

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 ?

User avatar
morphy_richards
Posts: 1603
Joined: Mon Mar 05, 2012 3:26 pm
Location: Epping Forest
Contact: Website

Re: Where To Put Raspberry Pi Software In The Forums

Thu Apr 07, 2016 12:16 pm

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.

User avatar
Bottersnike
Posts: 52
Joined: Wed Apr 06, 2016 7:17 am
Contact: Website

Re: Where To Put Raspberry Pi Software In The Forums

Thu Apr 07, 2016 12:51 pm

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.
Micro:Pi is an (almost) fully fledged IDE for programming a BBC Micro:Bit using C++. Go check it out at https://bottersnike.github.io/Micro-Pi

hippy
Posts: 6245
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Where To Put Raspberry Pi Software In The Forums

Thu Apr 07, 2016 2:56 pm

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.

scotty101
Posts: 3750
Joined: Fri Jun 08, 2012 6:03 pm

Re: Where To Put Raspberry Pi Software In The Forums

Thu Apr 07, 2016 3:04 pm

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.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

User avatar
ben_nuttall
Raspberry Pi Foundation Employee & Forum Moderator
Raspberry Pi Foundation Employee & Forum Moderator
Posts: 231
Joined: Sun Aug 19, 2012 11:19 am
Location: Cambridge, UK
Contact: Website

Re: Where To Put Raspberry Pi Software In The Forums

Fri Apr 08, 2016 1:24 pm

Link please!
Community Manager - Raspberry Pi Foundation
Author of GPIO Zero and creator of piwheels

User avatar
Bottersnike
Posts: 52
Joined: Wed Apr 06, 2016 7:17 am
Contact: Website

Re: Where To Put Raspberry Pi Software In The Forums

Fri Apr 08, 2016 1:54 pm

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 :)
Micro:Pi is an (almost) fully fledged IDE for programming a BBC Micro:Bit using C++. Go check it out at https://bottersnike.github.io/Micro-Pi

User avatar
Bottersnike
Posts: 52
Joined: Wed Apr 06, 2016 7:17 am
Contact: Website

Re: Where To Put Raspberry Pi Software In The Forums

Thu Apr 14, 2016 9:17 am

ben_nuttall wrote:Link please!
http://bottersnike.github.io/Micro-Pi/

There you go :)
Micro:Pi is an (almost) fully fledged IDE for programming a BBC Micro:Bit using C++. Go check it out at https://bottersnike.github.io/Micro-Pi

User avatar
B.Goode
Posts: 8987
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Where To Put Raspberry Pi Software In The Forums

Thu Apr 14, 2016 9:37 am

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?

User avatar
Bottersnike
Posts: 52
Joined: Wed Apr 06, 2016 7:17 am
Contact: Website

Re: Where To Put Raspberry Pi Software In The Forums

Thu Apr 14, 2016 9:44 am

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 :(
Micro:Pi is an (almost) fully fledged IDE for programming a BBC Micro:Bit using C++. Go check it out at https://bottersnike.github.io/Micro-Pi

User avatar
Bottersnike
Posts: 52
Joined: Wed Apr 06, 2016 7:17 am
Contact: Website

Re: Where To Put Raspberry Pi Software In The Forums

Thu Apr 14, 2016 9:48 am

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...
Micro:Pi is an (almost) fully fledged IDE for programming a BBC Micro:Bit using C++. Go check it out at https://bottersnike.github.io/Micro-Pi

Return to “General discussion”