diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-06 07:43:23 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-06 07:43:23 +0200 |
commit | 85b41913139682838141a44b8d6e2d3f2df2cccb (patch) | |
tree | 6a1449b4067294f51f63d58a4dcb1e85367c98af /k8055gui | |
parent | e740fa93f096152ef6efe0d7c3246f0127cca9bb (diff) | |
download | k8055-85b41913139682838141a44b8d6e2d3f2df2cccb.zip k8055-85b41913139682838141a44b8d6e2d3f2df2cccb.tar.gz |
rename k8055_(set|read)_all_values to k8055_(write|read)_all_(outputs|inputs)
Diffstat (limited to 'k8055gui')
-rw-r--r-- | k8055gui/MyFrame.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/k8055gui/MyFrame.cpp b/k8055gui/MyFrame.cpp index 7ea9270..109cbc1 100644 --- a/k8055gui/MyFrame.cpp +++ b/k8055gui/MyFrame.cpp @@ -215,7 +215,7 @@ void MyFrame::OnBnClickedOutputtest(wxCommandEvent& WXUNUSED(event)) k8055.ClearAllDigital(); k8055.ClearAllAnalog(); k8055.SetAnalogChannel( 1 ); - for( int i=0, j=255; i<256; i++, j--) k8055.SetAllValues(i,i,j); + for( int i=0, j=255; i<256; i++, j--) k8055.WriteAllOutputs(i,i,j); k8055.ClearAllDigital(); k8055.ClearAllAnalog(); OutputTest->SetValue(false); @@ -345,7 +345,7 @@ void MyFrame::OnIdle(wxIdleEvent& event) { //read data int data1, data2, data3, data4, data5; - k8055.ReadAllValues(&data1, &data2, &data3, &data4, &data5); + k8055.ReadAllInputs(&data1, &data2, &data3, &data4, &data5); //print data on interface I1->SetValue(data1 & 0x01); |