Commit graph

169 commits

Author SHA1 Message Date
DiSlord 55ff194b90 Add comments to hanovna.h defines
Add message box function
Use defines from nanovna.h for enable/disable some UI menus
Move edge color to nanovna.h
2020-07-17 22:55:19 +03:00
DiSlord bed63ca84b Add LCD command for debug (disabled as default)
Add defines for more easy change to 48kHz ADC
Add commented touch calibration settings for 4`LCD
2020-07-17 17:36:14 +03:00
DiSlord 3d927881af Allow more variable select border
Fix keyboard input color (now default white)
Fix value input from leveler (now possible see mode, value up/down or change position left/right)
Remove not used code and add comments
2020-07-15 14:34:50 +03:00
DiSlord ea7836a273 Redefine config menu colors to new gray theme
Remove not used code
Reverse leveler direction on on screen keyboard
2020-07-14 21:30:27 +03:00
DiSlord 3c0a23d92b Fix drop on version screen if enter from keyboard 2020-07-14 14:15:28 +03:00
DiSlord 66c63c3a11 Add button rise, falling, flat edge support
Some colors still hardcoded
2020-07-14 12:21:44 +03:00
DiSlord 0c16ced40b Implement advanced button configuration
Add button icons for checkbox and radio button
Reduce flash usage
2020-07-14 00:15:46 +03:00
DiSlord 507f7fbe52 Add base support checkbox for UI 2020-07-13 16:14:15 +03:00
DiSlord 080e623a14 Small code fixes 2020-07-13 06:56:49 +03:00
DiSlord fdf88ae289 Move some definitions too nanovna.h 2020-07-11 18:05:44 +03:00
DiSlord 1afe5c6db2 Merge branch 'master' of https://github.com/DiSlord/NanoVNA 2020-07-09 20:42:16 +03:00
DiSlord 86096a8c6a Multiline text output and align 2020-07-09 20:41:24 +03:00
DiSlord b1952a350f More simple keyboard init 2020-07-09 11:59:33 +03:00
DiSlord 9d34154f30 More compact UI code
Rewrite screen touch, now more better detect coordinate (and more compact)
New test touch screen (now for exit need push button)
2020-07-05 12:33:40 +03:00
DiSlord ff4cd0b8f7 Not close menu on recall 2020-07-03 23:08:52 +03:00
DiSlord 8894110423 Full screen keyboard
Custom buttons draw support
2020-07-03 22:03:54 +03:00
DiSlord 61b3989c28 Add part of SD card code (need some cleanup), disabled (not added diskio part!) 2020-07-01 12:29:25 +03:00
DiSlord 76223f5e25 Merge branch 'master' of https://github.com/ttrftech/NanoVNA 2020-06-20 12:31:35 +03:00
DiSlord a8f36a4c5d Add compact RTC library (only 500 bytes for all, default RTC lib req ~ 2kB)
For enable use external (LSE) clock generator need un comment in Makefile
#UDEFS+= -DVNA_USE_LSE
By default use internal (LSI) clock generator, but it stop then VNA power off
For enable use external (LSE) clock generator, need install 32.768kHz clock quartz on PC14 and PC15 pins, it allow clock run while power off

For enable use RTC in code uncomment in nanovna.h
#define __USE_RTC__
This enable command 'time'
usage: time [y|m|d|h|min|sec] 0-99
Example set 2020 year run 'time y 20'

Add show current time in version screen
Better use font size constants for all screen size
2020-06-20 12:07:38 +03:00
TT bc1b57c3f0 feat: add format quality factor 2020-06-20 08:08:21 +09:00
DiSlord ff52ba1d45 Code style 2020-05-25 13:36:23 +03:00
DiSlord cd4fc4f54f Not do multiple check Touch position on process touch (less code size)
Do delay 200ms on leveler menu up/down switch
2020-05-25 13:29:34 +03:00
DiSlord 8e58018995 Use default UI colors for sweep_points and bandwidth UI menu
Remove domain mode change on calibration menu select (not need)
2020-05-20 13:15:57 +03:00
DiSlord 881e46e122 Move ADC channel touch definition to nanovna.h 2020-05-17 23:47:15 +03:00
DiSlord 4444e94e3d Set 20Hz timer clock for touch check (1000Hz before, not need do it so fast, adc interrupt cause little noise on measure) 2020-05-17 17:56:51 +03:00
DiSlord cd745ca5eb Merge branch 'master' of https://github.com/ttrftech/NanoVNA 2020-05-16 12:00:30 +03:00
TT fb57511f9a view: change R+Xj to R+jX in menu label of smith value format 2020-05-16 10:48:50 +09:00
DiSlord dedae1ea82
Merge branch 'master' into master 2020-05-14 18:08:30 +03:00
TT ba7d358d35 fix: force disable tracking on marker search left/right op 2020-05-14 07:18:59 +09:00
DiSlord a1bbee724c Add support 96kHz ADC, allow increase sweep speed and bandwidth to 2kHz 2020-04-29 14:34:05 +03:00
DiSlord 23475a75c4 Add variable sweep point support 2020-04-29 14:32:40 +03:00
DiSlord a2e205e25b Remove frequency table from properties (allow get less size)
Fix interpolation near harmonic change point (use extrapolate from prev or next 2 points)
2020-04-29 14:23:59 +03:00
DiSlord 49b52213cf Change config and properties flash address definitions
Show BW settings at bottom of screen
2020-04-04 08:43:32 +03:00
DiSlord e09ee19646 Move bandwidth option from properties to config
Little fixes
2020-04-02 16:36:59 +03:00
DiSlord e6d680cd44 Not wait sweep end for apply bandwidth command
More size screen/font definitions
Prevent overflow on bigger POINTS_COUNT values
2020-04-01 00:36:43 +03:00
DiSlord 2f288d20cd More screen size depends definition fixes 2020-03-30 23:35:45 +03:00
DiSlord e34f460b22 Fix typo 2020-03-30 21:45:06 +03:00
DiSlord 20649012df Little speedup and less size fft
Better support other size LCD and font
Fix CH1 unstable at begin sweep
2020-03-30 20:01:51 +03:00
DiSlord 0c0f399657 Improve button input, better debounce less code size 2020-03-22 19:18:40 +03:00
DiSlord 2ed2f96f4a Size fixes
- bandwidth count stored in menu (less error on add new values)
- allow set any bandwidth count from command
- bandwidth command print bandwidth freq on apply
2020-03-21 21:58:51 +03:00
DiSlord 22e4df1577 Little rework bandwidth:
- Not reset sweep on request
- Better menu response
- little DSP optimization

Faster i2c bus (now 600kHz, allow more faster add settings)
Add i2c command (disabled by default)
Little fix stat command
2020-03-21 16:15:03 +03:00
TT 1656342eeb feat: add bandwidth setting of detector 2020-03-21 21:03:08 +09:00
TT 0d407577f8 style: uniform code style and untabify 2020-03-21 09:33:33 +09:00
DiSlord 3eb8a4cfe9 Fix interpolation range if sweep_points!=source calibration points count
use sweep_points exept POINTS_COUNT on marker search and so

Now possible change sweep_points in process (for faster sweep)
2020-03-14 21:23:02 +03:00
DiSlord 8bdb650212 Implement color command, allow change color settings in config (enabled bu default ENABLE_COLOR_COMMAND)
Usage: usage: color {id} {rgb24}
- Grid color: id = -3
- Menu bg color: id = -2
- Selected menu: id = -1
- Trace 1-4: id = 0..3
Color in hex RGB format (but possible any type input, dec, hex, bin. oct)
2020-03-12 21:43:35 +03:00
DiSlord 6f25d0d43f Remove Mutex use (CH_CFG_USE_MUTEXES = FALSE), now all Mutex depend functions run in sweep thread
It allow:
- reduce shell thread stack size
- more compact code
- fix some hardcoded scan command code, allow write better scan version
- run calibrate (not depend from pause sweep flag)

Rewrite uint32_t my_atoui(const char *p), now its allow read:
hex 0xaAbBcC1122
dec 12345678
bin 0b00011100
oct 0o12345678

Add some comments
2020-03-12 19:53:58 +03:00
DiSlord 10ae59e786 Little cleanup 2020-03-09 23:57:03 +03:00
DiSlord eebb625b9d Always update marker info 2020-03-09 22:28:05 +03:00
DiSlord 45f04420cb Implement info command, move info_about[] to main.c
Command enabled by default: ENABLE_INFO_COMMAND
This feature not increase flash size
2020-03-08 08:32:38 +03:00
DiSlord fc6e090595 Add vbat_offset to config
Implement vbat_offset command (if defined ENABLE_VBAT_OFFSET_COMMAND)
Reduce code size
2020-03-07 23:37:39 +03:00