Skip to content

Commit

Permalink
got rid of myfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zappysquirrel committed Aug 4, 2017
1 parent 3ce4be5 commit 8d712ca
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions tests/lis3dh.automated.test.nut
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@

class MyTestCase extends ImpTestCase {

@include __PATH__+"/myFile.nut"

static DATA_WAIT = 1;

_i2c = null;
_intPin = null;

function setUp() {
_i2c = hardware.i2c89;
_i2c.configure(CLOCK_SPEED_400_KHZ);
_intPin = hardware.pin1;
}

function getLIS() {
local accel = LIS3DH(_i2c, 0x32);
accel.reset();
Expand Down
8 changes: 6 additions & 2 deletions tests/lis3dh.test.nut
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@

class MyTestCase extends ImpTestCase {

@include __PATH__+"/myFile.nut"

static MANUAL_ACTION_TIMEOUT = 6;
static DATA_WAIT = 1;

_i2c = null;
_intPin = null;

function setUp() {
_i2c = hardware.i2c89;
_i2c.configure(CLOCK_SPEED_400_KHZ);
_intPin = hardware.pin1;
}

function getLIS() {
local accel = LIS3DH(_i2c, 0x32);
accel.reset();
Expand Down

0 comments on commit 8d712ca

Please sign in to comment.