Sylib
A C++ Library For V5
Loading...
Searching...
No Matches
env.hpp
1
10#pragma once
11#include <stdint.h>
12
13#include <algorithm>
14#include <array>
15#include <atomic>
16#include <cmath>
17#include <cstddef>
18#include <cstdint>
19#include <deque>
20#include <initializer_list>
21#include <iostream>
22#include <memory>
23#include <mutex>
24#include <queue>
25#include <stdexcept>
26#include <string>
27#include <vector>
28
29#define SYLIB_SRC_PRESENT
30#define SYLIB_ENV_PROS
31
32// #define SYLIB_ENV_VEXCODE
33
34#ifdef SYLIB_ENV_PROS
35#ifdef SYLIB_SRC_PRESENT
36#include "pros.h"
37#else
38#include "pros_includes.h"
39#endif
40#elif defined(SYLIB_ENV_VEXCODE)
41#include "vex.h"
42#endif
43
44extern "C" {
45int32_t vexAdiAddrLedSet(uint32_t index, uint32_t port, uint32_t* pData, uint32_t nOffset,
46 uint32_t nLength, uint32_t options);
47int32_t vexDeviceAdiAddrLedSet(V5_DeviceT device, uint32_t port, uint32_t* pData, uint32_t nOffset,
48 uint32_t nLength, uint32_t options);
49}