Skip to content
Snippets Groups Projects
Commit acee0041 authored by Charlotte Vandenbulcke's avatar Charlotte Vandenbulcke
Browse files

completing week09 with images and text

parent 5e0549dd
No related branches found
No related tags found
No related merge requests found
Pipeline #445953 passed
Showing
with 337 additions and 45 deletions
...@@ -50,90 +50,146 @@ ...@@ -50,90 +50,146 @@
<hr> <hr>
<section> <section>
<h3>Group assignment</h3> <h3>Assignment</h3>
<p></p> <p>To measure output devices, as asked this week, we used a USB power meter (this one is from <a href="https://www.amazon.com/Keweisi-Charger-Detector-Battery-Capacity/dp/B0184Y14SK" target="_blank">Keweisi</a>).</p>
<h4></h4> <span class="image object">
<img src="../images/measurements-tool.jpg" alt="..." />
</span>
<p>But before measuring the power of the output devices, we made a little test/game : separate the output devices from the input devices.</p>
<p>I did pretty well : one mistake + some could've been in both categories.</p>
<span class="image object"> <span class="image object">
<img src="../images/...jpg" alt="..." /> <img src="../images/input-output-test.jpg" alt="..." />
</span>
<br>
<span class="image object">
<img src="../images/input-output-test-corr.jpg" alt="..." />
</span>
<h4>Input vs Output devices</h4>
<span class="image object">
<img src="../images/input-output-devices.jpg" alt="..." />
</span> </span>
<h5></h5> <h5></h5>
<table> <table>
<thead>
<tr>
<th scope="col">Input</th>
<th scope="col">Output</th>
</tr>
</thead>
<tbody> <tbody>
<tr> <tr>
<th scope="row">Memory</th> <td scope="row">Temp</td>
<td>24 Mpts (divided by number of channels)</td> <td>7 color flash</td>
</tr>
<tr>
<td scope="row">Tilt switch</td>
<td>2 color LED</td>
</tr>
<tr>
<td scope="row">Touch</td>
<td>Big sound</td>
</tr>
<tr>
<td scope="row">Analog temp</td>
<td>Laser emit</td>
</tr> </tr>
<tr> <tr>
<th scope="row">Sample rate</th> <td scope="row">Heartbeat</td>
<td>250 MS/s (4 channels active),<br> <td>Heartbeat</td>
500 MS/s (2 channels active), <br>
1 GS/s (1 channel active)</td>
</tr> </tr>
<tr> <tr>
<th scope="row">Display</th> <td scope="row">Light cup</td>
<td>7" TFT, 800x480 pixels 160,000 colors</td> <td>Light cup</td>
</tr> </tr>
<tr> <tr>
<th scope="row">Input impedance</th> <td scope="row">Ball switch</td>
<td>1 MΩ</td> <td>Buzzer</td>
</tr> </tr>
<tr> <tr>
<th scope="row">Number of channels</th> <td scope="row">Hall magnatic</td>
<td>4</td> <td>IR emission</td>
</tr> </tr>
<tr> <tr>
<th scope="row">Horizontal scale (input)</th> <td scope="row">Reed switch</td>
<td>5 ns/div - 50s/div</td> <td>Small sound</td>
</tr> </tr>
<tr> <tr>
<th scope="row">Vertical Sensitivity (input)</th> <td scope="row">Tracking</td>
<td>1 mV/div - 10 V/div</td> <td>Tracking</td>
</tr> </tr>
<tr> <tr>
<th scope="row">A/D converter</th> <td scope="row">Photoresistor</td>
<td>8 bits resolution</td> <td>2 color</td>
</tr> </tr>
<tr> <tr>
<th scope="row">Maximum voltage</th> <td scope="row">Button</td>
<td>CAT I 300 Vrms, CAT II 100 Vrms, transient overvoltage 100Vpk</td> <td>Passive buzzer</td>
</tr> </tr>
<tr> <tr>
<th scope="row">Rise Time</th> <td scope="row">Digital temp</td>
<td>DS1104Z: 3.5 ns<br> <td></td>
DS1074Z: 5 ns<br>
DS1054Z: 7 ns</td>
</tr> </tr>
<tr> <tr>
<th scope="row">Probe support</th> <td scope="row">Tap module light blocking</td>
<td>0.1x - 1000x</td> <td></td>
</tr> </tr>
<tr> <tr>
<th scope="row">Measured noise value</th> <td scope="row">Analog hall</td>
<td>1 mVpp (at 100ms,1mV/div, record length: 3Mpts)</td> <td></td>
</tr> </tr>
<tr> <tr>
<th scope="row">Connections</th> <td scope="row">Rotary encoder</td>
<td>USB 2.0 type A, USB 2.0 type B, LAN</td> <td></td>
</tr> </tr>
<tr> <tr>
<th scope="row">Weight (without box)</th> <td scope="row">Mini reed</td>
<td>3.2 Kg</td> <td></td>
</tr> </tr>
<tr> <tr>
<th scope="row">Dimensions</th> <td scope="row">Avoid</td>
<td>313 x 161 x 122 mm</td> <td></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<h4>Coding</h4> <h4>Output tests</h4>
<p>To test the different output devices, we used codes that already exist on internet or in Arduino.</p>
<h5>LED Ring</h5>
<span class="image object">
<img src="../images/measuring-led-ring.jpg" alt="..." />
</span>
<p>For the LED ring, we used a simple code that can be found directly in Arduino.</p>
<p>First, we had to add the LED ring's "Adafruit NeoPixel" library.</p>
<p>After opening Arduino, you have to click on the library menu on the left sidebar, then search after "Adafruit NeoPixel".</p>
<h5>The Arduino Neopixel simple code</h5> <span class="image object">
<img src="../images/arduino-neopixel-lib.jpg" alt="..." />
</span>
<p>Once installed, open the "File" menu, go to "Examples", scroll until you see "Adafruit NeoPixel" and choose "simple".</p>
<span class="image object">
<img src="../images/neopixel-simple-example.jpg" alt="..." />
</span>
<p><strong>The Arduino NeoPixel simple code</strong></p>
<pre> <pre>
<code> <code>
...@@ -141,9 +197,9 @@ ...@@ -141,9 +197,9 @@
// Released under the GPLv3 license to match the rest of the // Released under the GPLv3 license to match the rest of the
// Adafruit NeoPixel library // Adafruit NeoPixel library
#include <Adafruit_NeoPixel.h> #include < Adafruit_NeoPixel.h >
#ifdef __AVR__ #ifdef __AVR__
#include <avr/power.h> // Required for 16 MHz Adafruit Trinket #include < avr/power.h > // Required for 16 MHz Adafruit Trinket
#endif #endif
// Which pin on the Arduino is connected to the NeoPixels? // Which pin on the Arduino is connected to the NeoPixels?
...@@ -176,7 +232,7 @@ ...@@ -176,7 +232,7 @@
// The first NeoPixel in a strand is #0, second is 1, all the way up // The first NeoPixel in a strand is #0, second is 1, all the way up
// to the count of pixels minus one. // to the count of pixels minus one.
for(int i=0; i<NUMPIXELS; i++) { // For each pixel... for(int i=0; i < NUMPIXELS; i++) { // For each pixel...
// pixels.Color() takes RGB values, from 0,0,0 up to 255,255,255 // pixels.Color() takes RGB values, from 0,0,0 up to 255,255,255
// Here we're using a moderately bright green color: // Here we're using a moderately bright green color:
...@@ -190,14 +246,96 @@ ...@@ -190,14 +246,96 @@
</code> </code>
</pre> </pre>
<h5>The Arduino ... Code</h5> <blockquote>
<p>Think about changing the number of the pin that is linked to the ring.</p>
</blockquote>
<p>The result is the LED ring getting each LED to turn on one after another until the last one. Then it starts again from the beginning.</p>
<span class="object">
<video width="600" height="300" controls>
<source src="../images/led-ring-too-fast.mp4" type="video/mp4">
</video>
</span>
<br>
<h5>Servo motor</h5>
<p>Second test, moving a servo motor.</p>
<p>For this we tried out the "sweep" example from Arduino (File>Examples>Servo>Sweep).</p>
<pre> <pre>
<code> <code>
... /* Sweep
by BARRAGAN < http://barraganstudio.com >
This example code is in the public domain.
modified 8 Nov 2013
by Scott Fitzgerald
https://www.arduino.cc/en/Tutorial/LibraryExamples/Sweep
*/
#include < Servo.h >
Servo myservo; // create servo object to control a servo
// twelve servo objects can be created on most boards
int pos = 0; // variable to store the servo position
void setup() {
myservo.attach(4); // attaches the servo on pin 9 to the servo object
}
void loop() {
for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees
// in steps of 1 degree
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15 ms for the servo to reach the position
}
for (pos = 180; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15 ms for the servo to reach the position
}
}
</code> </code>
</pre> </pre>
<br>
<h5>OLED Display</h5>
<p>As third test, we used an <a href="https://randomnerdtutorials.com/guide-for-oled-display-with-arduino/" target="_blank">I2C OLED Display</a>.</p>
<p>To be more precise, we used the SSD1306 model: a monocolor, 0.96-inch display with 128×64 pixels.</p>
<p>To be able to use it with Arduino, we had to install 2 libraries :</p>
<ul>
<li>Adafruit SSD1306</li>
<li>Adafruit GFX Library</li>
</ul>
<p>Once both libraries are installed, we copy/paste <strong>the <a href="https://www.makerguides.com/how-to-interface-the-ssd1306-i2c-oled-graphic-display-with-arduino/" target="_blank">Makerguides I2C OLED Display Code for Arduino</a></strong> found on internet.</p>
<p>I wanted to paste the code used on the OLED display here but it is interfering with the website.</p>
<p>So the code file can be downloaded <a href="../files/screen.ino" target="_blank">here</a></p>
<p>This code shows different texts and images on the display, so that we can see what can be done with this display.</p>
<blockquote>
<p>Think about changing the number of the pin that is linked to the display.</p>
</blockquote>
<span class="object">
<video width="600" height="300" controls>
<source src="../images/.mp4" type="video/mp4">
</video>
</span>
<h4></h4> <h4></h4>
<p></p> <p></p>
......
#include "Wire.h"
#include "Adafruit_GFX.h"
#include "Adafruit_SSD1306.h"
int Pot_Value = 0;
int Data = 0;
const int analog_Pin = A0;
//#define OLED_RESET 4
//Adafruit_SSD1306 display(OLED_RESET);
Adafruit_SSD1306 display(-1);
#define DIS_WIDTH 128 // OLED display width, in pixels
#define DIS_HEIGHT 64 // OLED display height, in pixels
#define IMG_HEIGHT 128
#define IMG_WIDTH 64
static const uint8_t PROGMEM makerguides [] PROGMEM = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0x80, 0x00, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0x80, 0x00, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0x80, 0x00, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0x80, 0x00, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0x82, 0x08, 0x3c, 0x3c, 0x1f, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf3, 0xff, 0xff,
0x87, 0x1c, 0x3c, 0x3c, 0x1f, 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xf3, 0xff, 0xff,
0x8f, 0x1e, 0x3c, 0x3c, 0x1f, 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xf3, 0xff, 0xff,
0x87, 0x1c, 0x3c, 0x1c, 0x1f, 0x1f, 0x1f, 0xfd, 0xff, 0xbf, 0xff, 0xff, 0xff, 0xf3, 0xff, 0xff,
0x86, 0x0c, 0x3c, 0x98, 0x1c, 0x07, 0x18, 0xf0, 0x78, 0x1e, 0x6f, 0xfd, 0xdf, 0x13, 0xe3, 0xf1, 0x82, 0x0c, 0x3c, 0x98, 0x18, 0x47, 0x11, 0xe2, 0x38, 0x18, 0x8e, 0x79, 0xde, 0x43, 0x99, 0xcd, 0x82, 0x0c, 0x3c, 0x99, 0x1c, 0xe7, 0x03, 0xc7, 0x18, 0xf3, 0xce, 0x79, 0xdc, 0xf3, 0xbc, 0xcf, 0x82, 0x0c, 0x3c, 0x89, 0x1f, 0xc7, 0x03, 0xc7, 0x18, 0xf3, 0xee, 0x79, 0xdd, 0xf3, 0x3c, 0xcf, 0x82, 0x0c, 0x3c, 0xc1, 0x1c, 0x07, 0x03, 0xc0, 0x18, 0xf3, 0xee, 0x79, 0xd9, 0xf3, 0x00, 0xe3, 0x82, 0x0c, 0x3c, 0xc3, 0x18, 0xe7, 0x01, 0xc7, 0xf8, 0xf3, 0xee, 0x79, 0xd9, 0xf3, 0x3f, 0xf9, 0x82, 0x0c, 0x3c, 0xc3, 0x18, 0xe7, 0x19, 0xc7, 0xf8, 0xf3, 0xee, 0x79, 0xdd, 0xf3, 0x3f, 0xfc, 0x82, 0x0c, 0x3c, 0xc3, 0x18, 0xc7, 0x18, 0xc3, 0x18, 0xf9, 0xce, 0x79, 0xdc, 0xf3, 0xbf, 0xfc, 0x82, 0x0c, 0x3c, 0xe3, 0x18, 0x03, 0x1c, 0xe0, 0x38, 0xf8, 0x0f, 0x01, 0xde, 0x03, 0x80, 0xc1, 0xc7, 0x1c, 0x3c, 0xe7, 0xbc, 0x37, 0x3e, 0xf8, 0x7d, 0xff, 0xef, 0x8d, 0xdf, 0x1b, 0xe1, 0xe3, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
};
void setup(){
Serial.begin(9600);
//Initialize display by providing the display type and its I2C address.
if (!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) {
Serial.println(F("SSD1306 allocation failed"));
for (;;); // Don't proceed, loop forever
}
delay(2000); // Pause for 2 seconds
display.clearDisplay();
Serial.println("Display Bitmap Image");
show_Bitmap();
Serial.println("Display Print Message");
Print_msg();
Serial.println("Display Print Message Scroll");
Print_msg_scroll();
Serial.println("Display Rectangle");
Rect_Blank_filled();
}
void loop()
{
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(40, 5);
display.println("POT VALUE");
Serial.print("POT VALUE :");
Pot_Value = analogRead(analog_Pin);
Data = map(Pot_Value, 0, 1023, 0, 500);
display.setCursor(60, 15);
display.print(Data);
Serial.println(Data);
delay(1000);
display.display();
}
// Shows fn bitmap
void show_Bitmap(void) {
display.clearDisplay();
display.drawBitmap(0, 0, makerguides, IMG_HEIGHT, IMG_WIDTH, WHITE);
display.display();
delay(1000);
}
// Shows fn print string
void Print_msg() {
display.clearDisplay();
display.setTextSize(1); // The fontsize
display.setTextColor(WHITE); // Draw white text
display.setCursor(5, 10); // Start at top-left corner
display.print("Makerguides.com");
display.display();
delay(3000);
}
//shows fn msg scroll
void Print_msg_scroll() {
display.clearDisplay();
display.setTextSize(1); // The fontsize
display.setTextColor(WHITE); // Draw white text
display.setCursor(0, 5); // Start at top-left corner
display.print("Hello");
display.display();
delay(3000);
display.startscrollleft(0x00, 0x0F);
delay(2000);
display.stopscroll();
delay(1000);
display.startscrollright(0x00, 0x0F);
delay(2000);
display.stopscroll();
delay(1000);
display.startscrolldiagright(0x00, 0x07);
delay(2000);
display.startscrolldiagleft(0x00, 0x07);
delay(2000);
display.stopscroll();
delay(3000);
}
// Shows fn Rectangle display
void Rect_Blank_filled() {
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0, 0);
display.drawRect(30, 5, 60, 25, WHITE);
display.display();
delay(2000);
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0, 0);
display.fillRect(30, 5, 60, 25, WHITE);
display.display();
delay(2000);
}
\ No newline at end of file
public/images/add-component.jpg

32.3 KiB

public/images/adding-connections.jpg

29.1 KiB

public/images/arduino-neopixel-lib.jpg

62.9 KiB

public/images/cat-controller-works.jpg

69.5 KiB

public/images/error-screen-lib-missing.jpg

67.2 KiB

public/images/input-output-devices.jpg

55.5 KiB

public/images/input-output-devices1.jpg

85.4 KiB

public/images/input-output-devices2.jpg

104 KiB

public/images/input-output-test-corr.jpg

68.9 KiB

public/images/input-output-test.jpg

62.3 KiB

public/images/installing-library-GFX.jpg

54.8 KiB

public/images/installing-library-SSD1306.jpg

65.1 KiB

public/images/installing-library.jpg

50.3 KiB

public/images/installing-servo-library.jpg

42.9 KiB

public/images/issue-servo-attach-no.jpg

62.8 KiB

File added
public/images/measurements-tool.jpg

125 KiB

public/images/measuring-led-ring.jpg

120 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment