• Well sunny. #photo #2007

  • Eiheiji. #photo #2016

  • Your micro:bit's name — try this in #MakeCode

    I’m re-visiting the micro:bit after a couple of years absence, for some new projects. Some notes and explorations on this to come. But here’s one about each device’s unique name you can try in MakeCode.

    Each micro:bit has a unique serial number set at manufacture which can be displayed as a five character name. You can display it by:

    • in a new project, swap into JavaScript editor view and type

    let myName = control.deviceName()

    myName is going to be the variable where we can access the micro:bit’s name.

    • now swap back to blocks view and you’ll see a myName variable being set—you can display it as you would with any text, such as in a show string block.

    You’ll need to download your code to a real micro:bit, then take a look at the result, which will be five characters, for example gozut — yours will be different.

    What’s the use? Say you’re using several micro:bits to measure temperature and sending their data over Bluetooth. By including the name in the data, you can distingush each micro:bit’s values.

  • A view from a hill. #photo #2019

  • Two trees. #photo #2012

  • Some trees. #photo #2019

  • Sissinghurst #photo #2012

  • More apples. #photo #2019

  • Seaside. #photo #2019

  • Fragments. #photo #2019

  • camcrag Tentastic Tentfest day salvaged 600 tents today for Calais and other refugees


  • Green. #photo #2019

  • Saltaire. #photo #2019

  • Apples. #photo #2019

  • Embedded Architecture #photo #2016

  • #MangaExhibition #photo #2019 British Museum

  • “And above that, his eyes: their grey irises smattered with bits of brown and ember so that, looking at them, you could almost see, right behind you, something burning under an overcast sky”. Ocean Vuong has a way with words.

  • Hoping that the demise of the only fanless Mac laptop—just the right size for a backpack, is a precursor to an ARM or better-still RISC-V successor. Mine is going strong with only one crumb-related keyboard panic-ette.

  • “Sir: I’d like to clear up a gross misconception that one of your contributors has concerning the behavior of the onboard computer during the Apollo 11 landing.” — Margaret Hamilton wehackthemoon.com/people/ma…

  • So, a timely reminder that there’s only 5 months till www.runwales.com Conwy ½ marathon. Need to book the traditional balmy weather…

  • Resist. Temptation. To. Climb. #tatemodern #photo #2016

  • It rained. #photo #2019

  • Moon. ISS. Caerfai Bay. #photo #2019

  • ’(p ([class “class”]) “Some ” (em () “awesome”) “ HTML” tm) “As the Lisp Evangelism Task Force will point out on Hacker News every few weeks, x-expressions are what XML would be if it weren’t produced by the Department of Redundancy Department.” — Greg Hendershott

  • A different kind of blue. #photo #2019

subscribe via RSS