Skip to content

Instantly share code, notes, and snippets.

View akay25's full-sized avatar
🎯
Focusing

Ajay M akay25

🎯
Focusing
View GitHub Profile
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);
#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;
@akay25
akay25 / DoublyLinkedList.c
Created November 24, 2016 15:34 — forked from mycodeschool/DoublyLinkedList.c
Doubly Linked List implementation in C
/* Doubly Linked List implementation */
#include<stdio.h>
#include<stdlib.h>
struct Node {
int data;
struct Node* next;
struct Node* prev;
};