Skip to content

Instantly share code, notes, and snippets.

Ringotron5000 ringodin

Block or report user

Report or block ringodin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ringodin
ringodin / Neopixel stick, all on and off, basic
Created Mar 13, 2019
This turns all 8 on at once, and off at once
View Neopixel stick, all on and off, basic
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
//what's the info pin?
#define PIN 6
// How many NeoPixels are attached to the Arduino?
#define NUMPIXELS 8
@ringodin
ringodin / Neopixel stick, super simple begin
Created Mar 13, 2019
This slowly turns on all 8 lights and then turns them off.
View Neopixel stick, super simple begin
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
//what's the info pin?
#define PIN 6
// How many NeoPixels are attached to the Arduino?
#define NUMPIXELS 8
View Vacuum Bot Template with blanks
#pragma config(Sensor, port9, bumpSwitch, sensorVexIQ_Touch)
#pragma config(Motor, motor1, leftMotor, tmotorVexIQ, openLoop, encoder)
#pragma config(Motor, motor6, rightMotor, tmotorVexIQ, openLoop, reversed, encoder)
task main()
{
// Loop Forever
while (true)
{
@ringodin
ringodin / forward backward, encoders IQ
Created Mar 11, 2019
This code makes the VEX IQ robot go forward and backwards with encoders
View forward backward, encoders IQ
#pragma config(Motor, motor1, leftMotor, tmotorVexIQ, openLoop, encoder)
#pragma config(Motor, motor6, rightMotor, tmotorVexIQ, openLoop, reversed, encoder)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
/*------------------------------------------------------------------------------------------------
This program will move the motors forward and backwards
ROBOT CONFIGURATION: VEX IQ Clawbot
MOTORS & SENSORS:
[I/O Port] [Name] [Type] [Location]
@ringodin
ringodin / drive until bump
Created Mar 11, 2019
The robot drives until the bumper switch is pressed
View drive until bump
#pragma config(Sensor, port9, bumpSwitch, sensorVexIQ_Touch)
#pragma config(Motor, motor1, leftMotor, tmotorVexIQ, openLoop, encoder)
#pragma config(Motor, motor6, rightMotor, tmotorVexIQ, openLoop, reversed, encoder)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
/*------------------------------------------------------------------------------------------------
Simple program to make your robot move forward until the Bumper Sensor is triggered (pressed).
ROBOT CONFIGURATION: VEX IQ Clawbot
MOTORS & SENSORS:
@ringodin
ringodin / bball drills, ringo's room
Created Mar 11, 2019
this is for solving bball drills up in room 4030, robotown HS
View bball drills, ringo's room
#pragma config(Motor, motor1, leftMotor, tmotorVexIQ, openLoop, encoder)
#pragma config(Motor, motor6, rightMotor, tmotorVexIQ, openLoop, reversed, encoder)
task main()
{
resetMotorEncoder(leftMotor);
resetMotorEncoder(rightMotor);
moveMotorTarget(leftMotor, 540, 75);
moveMotorTarget(rightMotor, 540, 75);
waitUntilMotorStop(leftMotor);
@ringodin
ringodin / Distance Sensor, detect wall, back up and turn
Created Mar 2, 2019
robot drives forward infinitely, but if a wall is detected, it backs up and turns.
View Distance Sensor, detect wall, back up and turn
#pragma config(Sensor, port4, distanceSensor, sensorVexIQ_Distance)
#pragma config(Motor, motor1, leftMotor, tmotorVexIQ, openLoop, encoder)
#pragma config(Motor, motor6, rightMotor, tmotorVexIQ, openLoop, reversed, encoder)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
/*------------------------------------------------------------------------------------------------
Move forward until the VEX IQ Distance Sensors sees an object 100 millimeters (mm) away. The VEX
IQ Distance Sensor returns values in millimeters.
ROBOT CONFIGURATION: VEX IQ Clawbot
@ringodin
ringodin / Bump infinitely around room
Created Mar 2, 2019
Robot drives forward until it bumps, then backs up and turns
View Bump infinitely around room
#pragma config(Sensor, port5, bumpSwitch, sensorVexIQ_Touch)
#pragma config(Motor, motor1, leftMotor, tmotorVexIQ, openLoop, encoder)
#pragma config(Motor, motor6, rightMotor, tmotorVexIQ, openLoop, reversed, encoder)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
/*------------------------------------------------------------------------------------------------
Simple program to make your robot move forward until the Bumper Sensor is triggered (pressed).
ROBOT CONFIGURATION: VEX IQ Clawbot
MOTORS & SENSORS:
@ringodin
ringodin / forward, backward, spin
Created Mar 2, 2019
the robot drives up and back a short distance, then turns
View forward, backward, spin
#pragma config(Motor, motor1, leftMotor, tmotorVexIQ, openLoop, encoder)
#pragma config(Motor, motor6, rightMotor, tmotorVexIQ, openLoop, reversed, encoder)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
/*------------------------------------------------------------------------------------------------
This program will move the motors forward and backwards
ROBOT CONFIGURATION: VEX IQ Clawbot
MOTORS & SENSORS:
[I/O Port] [Name] [Type] [Location]
View Strandtest for neopixel stick, 8 leds
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define PIN 6
// Parameter 1 = number of pixels in strip
// Parameter 2 = Arduino pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
You can’t perform that action at this time.