This file contains 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
// OK | |
private void AddTrade_Click(object sender, RoutedEventArgs e) | |
{ | |
var tradeCount = ViewModel.MyTrades.Count; | |
ViewModel.TradesSource.AddOrUpdate(Trade.Generate(tradeCount)); | |
} | |
// UPDATE NOT PROPAGATED TO VIEW | |
private void UpdateMarketPrice_Click(object sender, RoutedEventArgs e) |
This file contains 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
private void LoadFromJson_Click(object sender, RoutedEventArgs e) | |
{ | |
if (_json == null) return; | |
var myTrades = JsonConvert.DeserializeObject<TelaReactiveSourceCache<Trade, string>>(_json); | |
ViewModel.TradesSource = myTrades; | |
} |
This file contains 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
#include <mcp_can.h> | |
#include <SPI.h> | |
MCP_CAN CAN(10); // Set CS to pin 10 | |
void setup() | |
{ | |
Serial.begin(115200); | |
START_INIT: |
This file contains 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
/* | |
Authors: Eric Desgranges | |
Licensed under the GNU General Public License v3.0 | |
*/ | |
#include <FlexCAN.h> | |
// Teensy 2.0 has the LED on pin 11 | |
// Teensy++ 2.0 has the LED on pin 6 | |
// Teensy 3.x / Teensy LC have the LED on pin 13 |