[Microbit-Python] building a branch

Peter Inglesby peter.inglesby at gmail.com
Thu Dec 3 04:27:11 EST 2015


Hi Mark,

It looks like the neopixel module is missing from the list of modules in
mpconfigport.h
<https://github.com/bbcmicrobit/micropython/blob/neopixel/inc/microbit/mpconfigport.h>.
If you copy and adapt the references to `love_module`, you should get
something that you can import.

Hope that helps,

Peter.


On 3 December 2015 at 08:59, Mark Schafer <mschafer at wireframe.biz> wrote:

> any pointers on how to approach debugging this.
> I can find the .h and .c neopixel files in inc and lib. As well as the
> modneopixel.cpp
> All seems properly linked and the modneopixel.cpp seems well formed.
>
> I don't want Damien to have to do more work here.
> I want some pointers to how to approach it - maybe a similar approach has
> been used in another set of files ?
>
> Mark...
>
>
> On 12/3/2015 9:54 PM, Nicholas H.Tollervey wrote:
>
> Apologies, my misunderstanding.
>
> I guess this is one for Damien since he was the last person to commit to
> that branch.
>
> :-/
>
> N.
>
> On 03/12/15 08:50, Mark Schafer wrote:
>
> its unmodified from the repo
>
> On 12/3/2015 9:33 PM, Nicholas H.Tollervey wrote:
>
> Hi Mark,
>
> Could you commit your work on the neopixel branch and push it to GitHub?
> That way any of us will be able to recreate your local context and poke
> it with a proverbial stick.
>
> Alternatively, if you don't want to fanny-anny around with GitHub you
> could send us the patch.diff file you'll get from running this command
> on your neopixel branch:
>
> git diff neopixel master > patch.diff
>
> Hope this helps!
>
> Nicholas.
>
> On 03/12/15 07:44, Mark Schafer wrote:
>
> I'm having difficulty getting a branch to compile to a hex.
>
> 1. Ive got the https://github.com/bbcmicrobit/micropython cloned locally
>
> 2. I've done a "git checkout neopixel" to get the neopixel branch current
>     - (There are only two branches: Master and neopixel) "git branch
> --list"
>     - I've verified that the file modneopixel.cpp is in the source
> folder. So pretty sure I have correct branch.
>
> 3. I've built using yotta:
>     - yt target bbc-microbit-classic-gcc-nosd
>     - yt up
>     - yt build
>
> 4. The resulting file, as indicated in the readme, is in:
>     - build/bbc-microbit-classic-gcc-nosd/source/
>     - as a hexfile
>
> 5. The instructions say to run "make" to add any changed qstrs
>     - the resulting hex is in build/firmware.hex.
>     - I've tried "make" and also "make -B", both initiated from the
> micropython directory
>
> When I load this hex onto the Microbit. I don't see the neopixel module.
>     - in the neopixel branch there is an additional file called
> modneopixel.cpp which exposes the neopixel object
>     - so it should be visible.
>     - No errors are shown on screen during the compile phases.
>
>
> Can someone with more experience indicate which step in the process I
> have not done ?
> Or how I might check further to see where problem lies ?
> Thanks, Mark...
> _______________________________________________
> Microbit mailing listMicrobit at python.orghttps://mail.python.org/mailman/listinfo/microbit
>
>
>
> _______________________________________________
> Microbit mailing listMicrobit at python.orghttps://mail.python.org/mailman/listinfo/microbit
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2016.0.7227 / Virus Database: 4477/11101 - Release Date: 12/02/15
>
>
>
> _______________________________________________
> Microbit mailing listMicrobit at python.orghttps://mail.python.org/mailman/listinfo/microbit
>
>
>
> _______________________________________________
> Microbit mailing listMicrobit at python.orghttps://mail.python.org/mailman/listinfo/microbit
>
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2016.0.7227 / Virus Database: 4477/11101 - Release Date: 12/02/15
>
>
>
> _______________________________________________
> Microbit mailing list
> Microbit at python.org
> https://mail.python.org/mailman/listinfo/microbit
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/microbit/attachments/20151203/9d1b6653/attachment.html>


More information about the Microbit mailing list