diff --git a/agent/src/config.ts b/agent/src/config.ts index e9dc657..9b179f8 100644 --- a/agent/src/config.ts +++ b/agent/src/config.ts @@ -1,7 +1,10 @@ import { resolve } from 'path' import dotenv from 'dotenv' import { LedOption } from 'pi-io' -import { BoardType } from './driver' + +export enum BoardType { + RaspberryPi = 'pi' +} dotenv.config({ path: resolve(__dirname, '../../.env') }) diff --git a/agent/src/driver.ts b/agent/src/driver.ts index dd444d2..cafc06e 100644 --- a/agent/src/driver.ts +++ b/agent/src/driver.ts @@ -1,11 +1,7 @@ import autobind from 'autobind-decorator' import { Board, Led } from 'johnny-five' -import { BOARD, DRIVER_PWM_PIN } from './config' - -export enum BoardType { - RaspberryPi = 'pi' -} +import { BOARD, DRIVER_PWM_PIN, BoardType } from './config' class LedDriver { private readonly ready: Promise