substr https://makecode.calliope.cc/reference/text/substr
Take some part of the this string to make a smaller string (substring).
substr(6, 5) If you want to have the substring copy to the end of the first string
Take some part of the this string to make a smaller string (substring).
substr(6, 5) If you want to have the substring copy to the end of the first string
A String is a sequence of characters.
Strings can have characters from different languages too. "abcdefg1234*?!"
Low floor, wide walls, heigh ceiling: Welcome to Calliope mini! Our mission is to give pupils from year 3 onwards a playful approach to the digital world.
Have fun! 👋 Let’s go!
Memory used as temporary location for data in a program is commonly called a buffer. It’s a transfer stop for data coming from some source like a network or pins operation. A program can read the data from the buffer when it’s ready to work with it. Also, programs put their data in a buffer to make it ready for a transfer to a device or to somewhere else in memory on the Calliope mini.
An example of where you might do this is if you have a external display module or
A Blocks / Javascript code editor for the Calliope mini, a pocket-size computer with 5×5 display, sensors and Bluetooth.
When you have your code ready, you connect your Calliope mini to a computer via a
GitHub is a popular web site used by developers to host and work together on code. Using the GitHub integration in MakeCode, you can easily and freely host your programs and collaborate on them with friends.
Frequently Asked Questions Do you have more questions? Try the FAQ.
This page provides a short introduction to defining your own blocks in MakeCode.
appeared accept the dialog to add a custom.ts file in your project If you already have
It is possible to use the tools from the pxt command line interface (CLI). pxt can:
Using the PXT CLI assumes that you have some experience with programming and will
Declaring a variable should be done using the let keyword:
= a + 1; return b; } // Error: ‚b‘ doesn’t exist here return b; } Here, we have
Send rows of log data to the console.
datalogger.sendToConsole(false) When data logging is enabled in your program, you can have