Learn Swift language with hardware

SwiftIO offers a full Swift compiler and framework environment that runs on the microcontroller. The SwiftIO board is a compact electronic circuit board that runs Swift on the bare metal, giving you a system that can be used to control all kinds of electronic projects.

SwiftIO - Swift-based microcontroller board

Now you can write Swift source code on Windows and Mac.


  • i.MX RT1052 Crossover Processor with Arm® Cortex®-M7 core @600MHz

  • Micro SD card slot, supporting standard and high capacity SD cards

  • Micro USB connector for power

  • On-board USB to UART for serial communication

  • 46 GPIO on left and right edges

  • On-board GRB LED

  • 12 x 12-bit analog to digital (ADC) converters

  • 4 UART, 2 CAN, 2 IIC and 2 SPI

  • 14 PWM pins

  • Many additional advanced features to meet the needs of advanced users 

Pinout Diagram

SwiftIO Board



Now You can use Swift to control physical world

Swift is an awesome and easy-to-learn language for newbies,

and also a powerful language suitable for microcontrollers. 

Swift is one of the few modern languages that are extremely suitable for MCU devices. 

The native Swift compiler does not support generating Cortex-M machine instructions, but thanks to the modular architecture of the LLVM framework, it only takes a little hack to add a ready-made Cortex-M backend to it. After getting the machine instructions of the Cortex-M platform, the code can run on the platform. Many advanced features of Swift still need the underlying basic libraries and basic algorithms (such as heap management, thread management) to stand by. In practice, we chose Zephyr,  an open-source RTOS project hosted by the Linux Foundation under the Apache 2.0 license.

Swift can be seamlessly connected to C. What we have done is to drive Zephyr and package the API in C language. We call this layer of API framework SwiftIO. At this point, developers only need to import SwiftIO in the code (similar to the #include of the C language), and then they can use the API to conveniently operate the underlying hardware.

SwiftIO Structure

MadMachine Says Thanks to


​Be the first to know any update!

  • discord
  • GitHub
  • Twitter - Black Circle
  • YouTube - Black Circle

© 2018-2020 MadMachine Limited. All rights reserved.

Swift and the Swift logo are trademarks of Apple Inc.