Difference between revisions of "New Sensor Draft Page"

From Microduino Wiki
Jump to: navigation, search
(Specifications)
(Usage)
 
(14 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
=Specifications=
 
=Specifications=
*Chipset Used*
+
*Important Components
 +
**MPU6050
 +
**BMP
 +
 
 
*Pinout
 
*Pinout
 
*Compatible Pins
 
*Compatible Pins
 +
*I2C Address
 +
 +
==Downloads==
 
*CAD
 
*CAD
*Further Documents
+
*Schematic
 +
*Chipset Datasheet
 +
*Other files
  
 
=Usage=
 
=Usage=
  
 +
<tabs style="width:100%; color:{{#if:{{{1|}}}|green|red}}">
  
 
+
<tab name="Arduino for Microduino" style="width:75%;">
 
+
==Key Functions==
==Arduino==
 
 
*Required Libraries: None
 
*Required Libraries: None
 
*Key Functions
 
*Key Functions
Line 21: Line 29:
 
#include <iostream>
 
#include <iostream>
 
void function(int i){
 
void function(int i){
 +
int pinNum = 10;
 +
digitalWrite(pinNum, HIGH);
 +
delay(10);
 +
digitalWrite(pinNum, LOW);
 
}
 
}
int pinNum = 10;
 
digitalWrite(pinNum, HIGH);
 
delay(10);
 
digitalWrite(pinNum, LOW);
 
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
Download the above example: [[File:File.zip]]
 +
</tab>
  
==Mixly==
+
<tab name="Mixly">
 
Blocks
 
Blocks
 +
</tab>
  
==Scratch==
+
<tab name="Scratch">
Scratch is not supported.
+
More blocks
 +
</tab>
 +
</tabs>

Latest revision as of 20:25, 15 August 2017

About

Specifications

  • Important Components
    • MPU6050
    • BMP
  • Pinout
  • Compatible Pins
  • I2C Address

Downloads

  • CAD
  • Schematic
  • Chipset Datasheet
  • Other files

Usage

Key Functions

  • Required Libraries: None
  • Key Functions

Note: Important lines of code are highlighted

#include <iostream>
void function(int i){
int pinNum = 10;
	digitalWrite(pinNum, HIGH);
	delay(10);
	digitalWrite(pinNum, LOW);
}

Download the above example: File:File.zip

Blocks

More blocks