Quarky (Main)

Quaky-sensors
Extension Description
Control the basic digital and analog read and write operations & Deep Sleep.

Introduction

The Quarky extension allows users to perform the basic operations on Quarky:

  1. Upload a code to Quarky on upload mode using when Quarky starts up the block.
  2. Digital Input
  3. Digital Output
  4. Analog Input
  5. Analog Output
  6. Basic mathematical operations.

This extension is useful when you are using generic input output pins of Quarky.

Read More

PictoBlox Blocks

when Quarky starts up block is a Hat block. Scripts that wear this block get converted into Python code when you are in Upload Mode. This block is used when one has to upload a code into Quarky.
The block reads the digital value of the sensors connected to the specified pin. The block returns True or False.
The block reads the analog value of the sensors connected to the specified pin. The block returns the int value between 0 to 4096.
The block sets the digital state of the specified pin to HIGH or LOW / 0V or 3.3V.
The block sets the analog state of the specified pin to the specified value between 0 to 255.
The block changes the specified value to the integer or float according to the input.
The block maps the specified value from the first range to the second range.
The block resets the timer to 0.
The block reports the current time value in milliseconds.
All articles loaded
No more articles to load

Block Coding Examples

All articles loaded
No more articles to load

Python Functions

The function reads the analog value of the sensors connected to the specified pin. The function returns the int value between 0 to 4096.
Syntax: readanaloginput(pin = “A1”)
The function sets the digital state of the specified pin to HIGH or LOW / 0V or 3.3V.
Syntax: setdigitaloutput(pin, state)
The function reads the digital value of the sensors connected to the specified pin. The function returns True or False.
Syntax: readdigitalinput(pin)
The function sets the analog state of the specified pin to the specified value between 0 to 255.
Syntax: setanalogoutput(pin)
All articles loaded
No more articles to load
Table of Contents