pwm period is now 200us instead of the default 20ms veml6040 config is now AF_BIT | TRIG_BIT

Dependencies:   mbed MMA8451Q USBDevice WakeUp vt100

Fork of afero_node_suntory_2017_06_15 by Orefatoi

Committer:
Rhyme
Date:
Wed Oct 18 00:31:13 2017 +0000
Revision:
23:e4d2316383a1
Parent:
0:20bce0dcc921
pwm period is now 200us from default 20ms; veml6040->setCOLORCOnf is now AF_BIT | TRIG_BIT from 0x00;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wataloh 0:20bce0dcc921 1 /**
wataloh 0:20bce0dcc921 2 * Copyright 2015 Afero, Inc.
wataloh 0:20bce0dcc921 3 *
wataloh 0:20bce0dcc921 4 * Licensed under the Apache License, Version 2.0 (the "License");
wataloh 0:20bce0dcc921 5 * you may not use this file except in compliance with the License.
wataloh 0:20bce0dcc921 6 * You may obtain a copy of the License at
wataloh 0:20bce0dcc921 7 *
wataloh 0:20bce0dcc921 8 * http://www.apache.org/licenses/LICENSE-2.0
wataloh 0:20bce0dcc921 9 *
wataloh 0:20bce0dcc921 10 * Unless required by applicable law or agreed to in writing, software
wataloh 0:20bce0dcc921 11 * distributed under the License is distributed on an "AS IS" BASIS,
wataloh 0:20bce0dcc921 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
wataloh 0:20bce0dcc921 13 * See the License for the specific language governing permissions and
wataloh 0:20bce0dcc921 14 * limitations under the License.
wataloh 0:20bce0dcc921 15 */
wataloh 0:20bce0dcc921 16 #ifndef AFLIB_AFSPI_H
wataloh 0:20bce0dcc921 17 #define AFLIB_AFSPI_H
wataloh 0:20bce0dcc921 18
wataloh 0:20bce0dcc921 19 class afSPI {
wataloh 0:20bce0dcc921 20 public:
wataloh 0:20bce0dcc921 21 virtual void begin() = 0;
wataloh 0:20bce0dcc921 22 virtual void beginSPI() = 0;
wataloh 0:20bce0dcc921 23 virtual void endSPI() = 0;
wataloh 0:20bce0dcc921 24 virtual void transfer(char *bytes,int len) = 0;
wataloh 0:20bce0dcc921 25 };
wataloh 0:20bce0dcc921 26
wataloh 0:20bce0dcc921 27 #endif
wataloh 0:20bce0dcc921 28