This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Demo to show fading in/out brightness for LED's using a Rotary Encoder. | |
Code has comments for where FastLED commands would be. FastLED is not | |
needed for this. You can just open the serial monitor and watch things change | |
for this DEMO. This Demo is using an ESP32, and using a specific Encoder library | |
for it. | |
1. Press ON - fades from 0 up to powerOnBrightness (120) | |
2. Press Off - Fades from current brightness to 0 | |
3. Turn Knob Right - Increase brightness by encoderSteps (20) and fade up to it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Helper to translate "RETS" field definitions to mysql datatypes and eloquent methods | |
* @param $retsFieldDefinition | |
* | |
* @return object | |
*/ | |
public function translateRetsField($retsFieldDefinition) | |
{ | |
$retsInterpretation = $retsFieldDefinition->Interpretation; | |
$retsDataType = $retsFieldDefinition->DataType; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Note: $this->server is a "logged in" PHRETS $session | |
public function getLookupValues($resourceName, $className) | |
{ | |
$results = array(); | |
// Get Table Metadata for this resource/class | |
$tableMeta = $this->server->GetTableMetadata($resourceName, $className); |