This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const no_of_boxes = 1; | |
| const MAX_BOX_WIDTH = 250; | |
| const SMALL_BOX_WIDTH = 100; | |
| let MOUSE_LINE_COLOR; | |
| let boxes = []; | |
| let draggableBox = {}; | |
| function setup () { | |
| MOUSE_LINE_COLOR = color(0, 255, 0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <SPI.h> | |
| #include <SD.h> | |
| #include <Arduino.h> | |
| #include <U8x8lib.h> | |
| #define SCREEN_WIDTH 128 // OLED display width, in pixels | |
| #define SCREEN_HEIGHT 32 // OLED display height, in pixels | |
| U8X8_SSD1306_128X32_UNIVISION_SW_I2C display(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); | |
| uint8_t cur_x = 0, cur_y = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Doubly Linked List implementation */ | |
| #include<stdio.h> | |
| #include<stdlib.h> | |
| struct Node { | |
| int data; | |
| struct Node* next; | |
| struct Node* prev; | |
| }; |