# Blockly programming

**URL:** https://xrp.discourse.group/c/coding/blockly/6.md

[Latest](https://xrp.discourse.group/latest.md) · [Categories](https://xrp.discourse.group/categories.md) · [Tags](https://xrp.discourse.group/tags.md)

---

## [About the Blockly programming category](https://xrp.discourse.group/t/about-the-blockly-programming-category/12)

<div class="topic-metadata">

**Author:** [@bamiller](https://xrp.discourse.group/u/bamiller)\
**Replies:** 6\
**Last updated:** [November 16, 2023, 1:47pm UTC](https://xrp.discourse.group/t/about-the-blockly-programming-category/12 "2023-11-16T13:47:18Z")

</div>

Discussion about using the Blockly programming environment and tool to create programs for the XRP.

---

## [Feature Request: Custom Blocks with Python Backend](https://xrp.discourse.group/t/feature-request-custom-blocks-with-python-backend/958)

<div class="topic-metadata">

**Author:** [@Tinker](https://xrp.discourse.group/u/Tinker)\
**Replies:** 0\
**Last updated:** [July 15, 2026, 10:44pm UTC](https://xrp.discourse.group/t/feature-request-custom-blocks-with-python-backend/958 "2026-07-15T22:44:03Z")

</div>

Feature Request: Custom Blocks with Python Backend We’ve been playing Orbit Odyssey with a group of middle schoolers over the summer, and we are really liking the XRP platform (especially the XBS v2 printed parts!). It…

---

## [Timer Block for Blockly IDE](https://xrp.discourse.group/t/timer-block-for-blockly-ide/878)

<div class="topic-metadata">

**Author:** [@Enmanuelgg05](https://xrp.discourse.group/u/Enmanuelgg05)\
**Replies:** 2\
**Last updated:** [June 20, 2026, 4:12pm UTC](https://xrp.discourse.group/t/timer-block-for-blockly-ide/878 "2026-06-20T16:12:38Z")

</div>

Hi all, first post here. I wanted to suggest that the developers add a Timer Block to the blockly programming environment. I want to teach students how to use the timer without having to jump into python. All the timer b…

---

## [Huskylens blocly](https://xrp.discourse.group/t/huskylens-blocly/864)

<div class="topic-metadata">

**Author:** [@Jorg](https://xrp.discourse.group/u/Jorg)\
**Replies:** 2\
**Last updated:** [October 13, 2025, 4:03pm UTC](https://xrp.discourse.group/t/huskylens-blocly/864 "2025-10-13T16:03:39Z")

</div>

Hi all, Last year i used microbit maqueens for my students to learn about vision. My students are 15 years old and like the blockly environment very much. The XRP robot is more advanced as the maqueen, but i don’t see a…

---

## [Web Server with XRP Version 1](https://xrp.discourse.group/t/web-server-with-xrp-version-1/762)

<div class="topic-metadata">

**Author:** [@MichelleE2](https://xrp.discourse.group/u/MichelleE2)\
**Replies:** 8\
**Last updated:** [May 28, 2025, 4:10pm UTC](https://xrp.discourse.group/t/web-server-with-xrp-version-1/762 "2025-05-28T16:10:46Z")

</div>

Having trouble getting a webserver going on Version 1 of the XRP using the webserver\_example.py I suspect I’m just doing something stupid. Is there a tutorial or video out there that walks through it? I tried both runn…

---

## [XRPCode Mod Manager](https://xrp.discourse.group/t/xrpcode-mod-manager/719)

<div class="topic-metadata">

**Author:** [@Advay](https://xrp.discourse.group/u/Advay)\
**Replies:** 1\
**Last updated:** [May 6, 2025, 3:19pm UTC](https://xrp.discourse.group/t/xrpcode-mod-manager/719 "2025-05-06T15:19:43Z")

</div>

The Problem XRPCode serves as a nice and intuitive editor for kids. However, the Blockly portion of XRPCode is heavily limited by the number of blocks available for use: for instance, it would not be possible for me to e…

---

## [How Long Until Gamepad Blocks](https://xrp.discourse.group/t/how-long-until-gamepad-blocks/718)

<div class="topic-metadata">

**Author:** [@Advay](https://xrp.discourse.group/u/Advay)\
**Replies:** 1\
**Last updated:** [May 6, 2025, 3:12pm UTC](https://xrp.discourse.group/t/how-long-until-gamepad-blocks/718 "2025-05-06T15:12:56Z")

</div>

IIRC, there was some code for adding gamepad support to XRPCode(though my memory may be mistaken). Is this a planned feature, and if so, how long will it take to be implemented? Just want to check to see if it’s worth it…

---

## [Sample Code: XRP Logo](https://xrp.discourse.group/t/sample-code-xrp-logo/514)

<div class="topic-metadata">

**Author:** [@jrumple](https://xrp.discourse.group/u/jrumple)\
**Replies:** 5\
**Last updated:** [November 15, 2024, 9:15pm UTC](https://xrp.discourse.group/t/sample-code-xrp-logo/514 "2024-11-15T21:15:33Z")

</div>

I started building a Logo programming emulator for the XRP. My project guide is available at XRP Project Guide-Turtle Graphics IRL - Google Docs. It has links on where to find the code. I’m considering this version 0.4.…

---

## [Blockly Comment Block](https://xrp.discourse.group/t/blockly-comment-block/535)

<div class="topic-metadata">

**Author:** [@jrumple](https://xrp.discourse.group/u/jrumple)\
**Replies:** 0\
**Last updated:** [November 11, 2024, 2:33am UTC](https://xrp.discourse.group/t/blockly-comment-block/535 "2024-11-11T02:33:02Z")

</div>

In a future release, can we get a block just for comments? I know I can add comments to any block, and I like having this available. Most of the new programmers I work with don’t know to look into these comments for hel…

---

## [Sample Code: XRP Fortune Teller](https://xrp.discourse.group/t/sample-code-xrp-fortune-teller/534)

<div class="topic-metadata">

**Author:** [@jrumple](https://xrp.discourse.group/u/jrumple)\
**Replies:** 0\
**Last updated:** [November 11, 2024, 1:26am UTC](https://xrp.discourse.group/t/sample-code-xrp-fortune-teller/534 "2024-11-11T01:26:35Z")

</div>

I just finished a new Blockly example code. This one turns the XRP into a Fortune Teller. It is available at XRP Blocks - Google Drive. You can set the XRP on a standard 30" deep folding table. Then press the Reset butt…

---

## [Negative Math Block](https://xrp.discourse.group/t/negative-math-block/506)

<div class="topic-metadata">

**Author:** [@jrumple](https://xrp.discourse.group/u/jrumple)\
**Replies:** 2\
**Last updated:** [October 24, 2024, 11:56pm UTC](https://xrp.discourse.group/t/negative-math-block/506 "2024-10-24T23:56:50Z")

</div>

In the next update, can you add a negative block to the Math tray? When I went to build a Forward function and then a Backward function, I discovered there was no way to change the sign of the input variable. I was able…

---

## [Sample Code-Mecanum Chassis](https://xrp.discourse.group/t/sample-code-mecanum-chassis/504)

<div class="topic-metadata">

**Author:** [@jrumple](https://xrp.discourse.group/u/jrumple)\
**Replies:** 2\
**Last updated:** [October 23, 2024, 5:55pm UTC](https://xrp.discourse.group/t/sample-code-mecanum-chassis/504 "2024-10-23T17:55:55Z")

</div>

I’ve been working with the Mecanum chassis (Mecanum Chassis). I’m hoping to use it as a platform for my FIRST Tech Challenge (FTC) teams to plan and prototype their Autonomous OpModes between Team Practices. Since there…

---

## [XRP Code Editor Bluetooth connection questions](https://xrp.discourse.group/t/xrp-code-editor-bluetooth-connection-questions/443)

<div class="topic-metadata">

**Author:** [@WayneSeltzer](https://xrp.discourse.group/u/WayneSeltzer)\
**Replies:** 5\
**Last updated:** [July 27, 2024, 10:13am UTC](https://xrp.discourse.group/t/xrp-code-editor-bluetooth-connection-questions/443 "2024-07-27T10:13:04Z")

</div>

Looking forward to Bluetooth support in the XRP Code Editor some day. Last week, my students built quite a few “USB cord winders” as they attempted to debug their projects via the USB cable. :wink: For classroom use wi…

---

## [Does the XRP Blockly App work?](https://xrp.discourse.group/t/does-the-xrp-blockly-app-work/370)

<div class="topic-metadata">

**Author:** [@Advay](https://xrp.discourse.group/u/Advay)\
**Replies:** 16\
**Last updated:** [July 19, 2024, 11:02am UTC](https://xrp.discourse.group/t/does-the-xrp-blockly-app-work/370 "2024-07-19T11:02:12Z")

</div>

Hi, my team is planning on using the XRP app for a stem camp. We wanted to have the kids be able to drive the robot in real time while still using block code. We researched into using web servers for this, but they were …

---

## [Urgent: XRP Code Editor SSL Certifcate expired!](https://xrp.discourse.group/t/urgent-xrp-code-editor-ssl-certifcate-expired/435)

<div class="topic-metadata">

**Author:** [@WayneSeltzer](https://xrp.discourse.group/u/WayneSeltzer)\
**Replies:** 5\
**Last updated:** [July 18, 2024, 3:26am UTC](https://xrp.discourse.group/t/urgent-xrp-code-editor-ssl-certifcate-expired/435 "2024-07-18T03:26:56Z")

</div>

https://xrpcode.wpi.edu/ Issued On|Sunday, July 16, 2023 at 6:00:00 PM| Expires On|Tuesday, July 16, 2024 at 5:59:59 PM| I’m teaching a class right now and students are unable to use the XRP Code Editor. Looking for …

---

## [Periodic Function](https://xrp.discourse.group/t/periodic-function/431)

<div class="topic-metadata">

**Author:** [@Advay](https://xrp.discourse.group/u/Advay)\
**Replies:** 2\
**Last updated:** [July 14, 2024, 8:27pm UTC](https://xrp.discourse.group/t/periodic-function/431 "2024-07-14T20:27:22Z")

</div>

In the XRP curriculum, there is a suggestion to use machine.Timer in micropython to update the value logged in a webserver. However, there is no equivalent for Blockly. I feel like adding a periodic function that runs w…

---

## [XRP Code Editor "prompt for number" ('raw\_input') does not accept input?](https://xrp.discourse.group/t/xrp-code-editor-prompt-for-number-raw-input-does-not-accept-input/393)

<div class="topic-metadata">

**Author:** [@WayneSeltzer](https://xrp.discourse.group/u/WayneSeltzer)\
**Replies:** 4\
**Last updated:** [June 21, 2024, 4:28pm UTC](https://xrp.discourse.group/t/xrp-code-editor-prompt-for-number-raw-input-does-not-accept-input/393 "2024-06-21T16:28:28Z")

</div>

This Blockly code: generates this Python code: n = None def text\_prompt(msg): try: return raw\_input(msg) except NameError: return input(msg) n = text\_prompt('Type a number: ') print(n) When I run this…

---

## [I am trying to make a "block" that reads a sensor](https://xrp.discourse.group/t/i-am-trying-to-make-a-block-that-reads-a-sensor/283)

<div class="topic-metadata">

**Author:** [@KWOL](https://xrp.discourse.group/u/KWOL)\
**Replies:** 4\
**Last updated:** [March 8, 2024, 5:50pm UTC](https://xrp.discourse.group/t/i-am-trying-to-make-a-block-that-reads-a-sensor/283 "2024-03-08T17:50:27Z")

</div>

I am trying to make a block that sends makes one of the pins on the pi controller serial, then sends a character code out to the pi to signal it to send data, then reads that data then outputs it from the block. As you …

---

## [Why not embrace MicroBlocks instead of Blockly?](https://xrp.discourse.group/t/why-not-embrace-microblocks-instead-of-blockly/32)

<div class="topic-metadata">

**Author:** [@kgiori](https://xrp.discourse.group/u/kgiori)\
**Replies:** 10\
**Last updated:** [November 24, 2023, 1:37pm UTC](https://xrp.discourse.group/t/why-not-embrace-microblocks-instead-of-blockly/32 "2023-11-24T13:37:50Z")

</div>

MicroBlocks already supports the RPi Pico and it’s the only physical computing programming IDE that is LIVE (like Scratch and Snap\*!\*). Creating an XRP library for the MicroBlocks IDE would make it quite easy for learner…
