Skip to content

Commit 08e2a70

Browse files
author
Ritika Mishra
committed
fixed issues
1 parent afaa95e commit 08e2a70

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Chords is an application based on Web Serial connection, you can connect [Compat
7070
- [X] **Raspberry Pi Pico Support**: Release Raspberry Pi Pico support for Chords. It works seamlessly with the new Heart BioAmp Candy. Share your favorite board in the comments, and we'll aim to include it in future updates.
7171
- [X] **Arduino Nano Support** Add support for Nano board which supports up to 8 channels.
7272

73-
- **User Interface** : Improved user inteface by following changes:
73+
- **User Interface** : Improved user interface by following changes:
7474
- [X] **Channel Selection**: Display the available channels in a popover, showing a total of 16 channels. However, the number of enabled channels will be based on the connected board.
7575
- [X] **Zoom Slider**: Adjust zoom to focus on data points or view an overall plot.
7676
- [X] **Time-Base Slider**: Customize the time duration for displaying data per frame, with options ranging from 1 to 10 seconds.

src/components/Connection.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,8 +1555,8 @@ const Connection: React.FC<ConnectionProps> = ({
15551555
<div className="relative">
15561556
{/* Heading and Select All Button */}
15571557
<div className="flex items-center justify-between mb-4">
1558-
<h3 className="text-sm font-semibold text-gray-700">
1559-
Channels Count: {selectedChannels.length}
1558+
<h3 className="text-sm font-semibold text-gray-500">
1559+
<span className="font-bold text-gray-600">Channels Count:</span> {selectedChannels.length}
15601560
</h3>
15611561
<button
15621562
onClick={handleSelectAllToggle}
@@ -1609,7 +1609,7 @@ const Connection: React.FC<ConnectionProps> = ({
16091609
key={index}
16101610
onClick={() => !isChannelDisabled && toggleChannel(index + 1)}
16111611
disabled={isChannelDisabled || isRecordButtonDisabled}
1612-
className={`w-full h-8 text-xs font-medium py-1 border-[0.3px] border-gray-300 dark:border-gray-600 transition-colors duration-200 ${buttonClass} ${roundedClass}`}
1612+
className={`w-full h-8 text-xs font-medium py-1 border-[0.05px] border-gray-300 dark:border-gray-600 transition-colors duration-200 ${buttonClass} ${roundedClass}`}
16131613
>
16141614
{`CH${index + 1}`}
16151615
</button>
@@ -1626,7 +1626,7 @@ const Connection: React.FC<ConnectionProps> = ({
16261626
{/* Zoom Controls */}
16271627
<div className="relative w-full flex flex-col items-start mt-3">
16281628
<p className="absolute top-[-1.2rem] left-0 text-[0.50rem] font-semibold text-gray-500">
1629-
<span className="font-bold text-gray-700">ZOOM LEVEL:</span> {Zoom} X
1629+
<span className="font-bold text-gray-600">ZOOM LEVEL:</span> {Zoom} X
16301630
</p>
16311631
<div className="relative w-[28rem] flex items-center rounded-lg py-2 border border-gray-300 dark:border-gray-600">
16321632
<p className="text-gray-700 dark:text-gray-400 mx-1 px-1 text-xs">1</p>
@@ -1650,7 +1650,7 @@ const Connection: React.FC<ConnectionProps> = ({
16501650
{/* Time-Base Selection */}
16511651
<div className="relative w-full flex flex-col items-start mt-3">
16521652
<p className="absolute top-[-1.2rem] left-0 text-[0.50rem] font-semibold text-gray-500">
1653-
<span className="font-bold text-gray-700">TIME BASE:</span> {timeBase} SECONDS
1653+
<span className="font-bold text-gray-600">TIME BASE:</span> {timeBase} SECONDS
16541654
</p>
16551655
<div className="relative w-[28rem] flex items-center rounded-lg py-2 border border-gray-300 dark:border-gray-600">
16561656
<p className="text-gray-700 dark:text-gray-400 mx-1 px-1 text-xs">1</p>

src/components/boards.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const BoardsList = Object.freeze([
1212
{
1313
chords_id: "NANO-CLONE",
1414
device_name: "Arduino Nano Clone",
15-
field_pid: 29987,//32832
15+
field_pid: 29987,
1616
adc_resolution: 10,
1717
channel_count: 8,
1818
sampling_rate: 250,

0 commit comments

Comments
 (0)