Skip to content

Commit

Permalink
minor changes to mobile app, added board support for desktop app
Browse files Browse the repository at this point in the history
  • Loading branch information
suvarna84 committed May 24, 2024
1 parent 4a7ba74 commit 89e6e90
Show file tree
Hide file tree
Showing 13 changed files with 809 additions and 174 deletions.
29 changes: 29 additions & 0 deletions .idea/libraries/Dart_SDK.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/libraries/Flutter_Plugins.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/protocentral_openview2.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added android/akw-newkey
Binary file not shown.
12 changes: 6 additions & 6 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 65;
CURRENT_PROJECT_VERSION = 71;
DEVELOPMENT_TEAM = M86YWF3243;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -424,7 +424,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
MARKETING_VERSION = 1.0.10;
MARKETING_VERSION = 2.0.2;
PRODUCT_BUNDLE_IDENTIFIER = com.protocentral.openview;
PRODUCT_NAME = Runner;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
Expand Down Expand Up @@ -548,7 +548,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 65;
CURRENT_PROJECT_VERSION = 71;
DEVELOPMENT_TEAM = M86YWF3243;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -565,7 +565,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
MARKETING_VERSION = 1.0.10;
MARKETING_VERSION = 2.0.2;
PRODUCT_BUNDLE_IDENTIFIER = com.protocentral.openview;
PRODUCT_NAME = Runner;
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand All @@ -583,7 +583,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 65;
CURRENT_PROJECT_VERSION = 71;
DEVELOPMENT_TEAM = M86YWF3243;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -600,7 +600,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
MARKETING_VERSION = 1.0.10;
MARKETING_VERSION = 2.0.2;
PRODUCT_BUNDLE_IDENTIFIER = com.protocentral.openview;
PRODUCT_NAME = OpenView;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
Expand Down
55 changes: 53 additions & 2 deletions lib/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ bool connectedToDevice = false;

String pcCurrentDeviceID = "";
String pcCurrentDeviceName = "";
String _selectedBoard = 'Select Board';

String _selectedPort = 'Board';
String _selectedBoard = 'Healthypi';

String _selectedPort = 'Port';
String selectedPortBoard = 'Healthypi';

late SerialPort _serialPort;

Expand Down Expand Up @@ -71,6 +73,9 @@ var ces_pkt_ch1_buffer = new List.filled(4, 0, growable: false);
var ces_pkt_ch2_buffer = new List.filled(4, 0, growable: false);
var ces_pkt_ch3_buffer = new List.filled(4, 0, growable: false);

int computed_val1 = 0;
int computed_val2 = 0;

class HomePage extends StatefulWidget {
HomePage({Key? key, required this.title}) : super(key: key);

Expand Down Expand Up @@ -632,6 +637,51 @@ class _HomePageState extends State<HomePage> {
SizedBox(
width:20.0,
),
DropdownButton(
underline: SizedBox(),
dropdownColor: hPi4Global.hpi4Color,
hint: selectedPortBoard == null
? Text('Select Board')
: Text(selectedPortBoard,
style: TextStyle(color: hPi4Global.hpi4Color, fontSize: 16.0),
),
//isExpanded: true,
iconSize: 50.0,
style: TextStyle(color: Colors.white, fontSize: 16.0),
items: [
'Healthypi',
'ADS1292R Breakout/Shield',
'ADS1293 Breakout/Shield',
'AFE4490 Breakout/Shield',
'MAX86150 Breakout',
'Pulse Express (MAX30102/MAX32664D)',
'tinyGSR Breakout',
'MAX30003 ECG Breakout',
'MAX30001 ECG & BioZ Breakout'
].map(
(val) {
return DropdownMenuItem<String>(
value: val,
child: Text(val),
);
},
).toList(),
onChanged: (value) {
setState(
() {
selectedPortBoard = value as String;
},
);
},
),
SizedBox(
width:50.0,
),
Text("Select Port:",style:
TextStyle(color: Colors.black, fontSize: 16.0) ),
SizedBox(
width:20.0,
),
DropdownButton(
underline: SizedBox(),
dropdownColor: hPi4Global.hpi4Color,
Expand Down Expand Up @@ -696,6 +746,7 @@ class _HomePageState extends State<HomePage> {
=> PlotSerialPage(
selectedPort:_serialPort,
selectedSerialPort: _selectedPort,
selectedPortBoard: selectedPortBoard,
)));

},
Expand Down
Loading

0 comments on commit 89e6e90

Please sign in to comment.