Homepage   Search   Register   Log in SUPERJER FORAMS

sprinkles

sprinkles

User Name sprinkles
Assigned Title  
Assigned Color #ddbb00      
Avatar
Medals Chrome Whore Chrome Whore
Registration Date 2009 September 6
Post Count 2545
Score 10 ₧
Location Colorado Springs, CO
Signature
Timezone US/Mountain
Groups havokk


Recent posts by sprinkles
View all posts by sprinkles

Truck: C++ broken stuff whatever shit dog in Programming Help
CodeBlocks for Arduino.
May 11

Truck: C++ broken stuff whatever shit dog in Programming Help
Nope. Checked 5+ times. All the file names are the exact same. BlackThornDemon.

I just started copying the header and source to all the folders on my hdd. Works now.
May 11

Truck: C++ broken stuff whatever shit dog in Programming Help
cluster.ino|2|error: BlackThornDemon.h: No such file or directory|
cluster.ino|3|error: 'BlackThornDemon' does not name a type|
src\BlackThornDemon.cpp|2|error: BlackThornDemon.h: No such file or directory|
src\BlackThornDemon.cpp|4|error: 'BlackThornDemon' has not been declared|

cluster.ino
code
#include <Arduino.h>
#include <BlackThornDemon.h>
BlackThornDemon obd2(2);
char rxData[20];
byte rxIndex=0;

byte speed=0;
/*
rpm is returned at 1/4 the actual rpm
so the range should be 0-2000
*/
int rpm=0;
float fuel=0.00;
/*
int because byte only goes to 255
noraml operatring temps are ~190-200f
so the possibility of the coolant temp
getting over 255 is evident
and if your car is on fire you prolly
want to know
*/
int coolantTemp=0;
// NOTE: we have to read this from the storage device
int odometer=0;
int trip=0;


void setup()
{
Serial.begin(9600); // so we can talk to obd2
delay(500);
Serial.println("ATZ"); //reset obd2
delay(1000);

Serial.flush(); // purge the serial buffer
}

void loop()
{
Serial.flush();
Serial.println("010D"); // tell obd2 to send us speed
//obd2.GetResponse(); // returns the command we sent ("010D")
//obd2.GetResponse(); // returns the data


}


blackthorndemon.h
c code
#ifndef BlackThornDemon_h
#define BlackThornDemon_h
#include "Arduino.h"
class BlackThornDemon
{
public:
BlackThornDemon(int pin);
void GetResponse();
virtual ~BlackThornDemon();
protected:
private:
};


#endif // BLACKTHORNDEMON_H


blackthorndemon.c
c code
#include "Arduino.h"
#include "BlackThornDemon.h"

BlackThornDemon::BlackThornDemon(int pin)
{
pin = pin + pin;
}
BlackThornDemon::GetResponse()
{

}
BlackThornDemon::~BlackThornDemon()
{
//dtor
}
May 11

Truck: I'm either gonna quit mapping or switch to something else .. in Hammer Mapping
SuperJer said:
One thing that's very counter-intuitive is that, in the newer stuff, you can have even less world brushes. If you have more than 6 or so world brushes per room, things will go to shit.


So what you are saying is, Valve made this game?
Apr 15

Truck: New CSGO map: de_substation in Computer and Video Games
Rockbomb said:
It's so pretty :3
Is there a CS:GO server anyone here frequents?


superjers you no has csgoserver?
Apr 8

Truck: Help me find: My Immortal dramatic reading in General
dunky?
Mar 22

Truck: daddy in General
Down Rodeo said:
Outcast said:
Put your dick in there and see what happens.
I did actually think it was a fleshlight. Like a metallic one.


Its 4 inches in diameter.

Oh and the muffler is pretty wide too.
Mar 20



Truck: Where's the Havoc Section? in The Oubliette
Mar 16

Forum and design copyright © 2008-2013 SuperJer.com