Commit graph

13 commits

Author SHA1 Message Date
DiSlord 02a5715bb4 Big code redisign (increase CELL draw size, more faster screen render), also save about 4-5kB flash size
Try remove all hardcoded values from code (use definition if set)
Some error fix

main.c:
Rewrite Shell, now it run on main thread and require less RAM (not need stack)
 (possible run it as thread if define VNA_SHELL_THREAD
Remove not used trace_info[].scale_unit in set_trace_scale/get_trace_scale (it just divede on set and multiple on get, better use it for default scale set)

Replace some hardcoded values
 MARKERS_MAX
 SAVEAREA_MAX
 TRACES_MAX

plot.c
Rewrite CELLWIDTH and CELLHEIGHT use, now possible set any CELL width and height (CELLWIDTH * CELLHEIGHT <= spi_buffer size)
Free RAM from shell stack use fore increase spi_buffer size now it have 2048 pixel (64x32)
Rewrite cell index and markmap use (now correct use cell size, and more faster), correct use CELLWIDTH and CELLHEIGHT in calculation
Fore set update area use invalidateRect (still need use some hardcoded values :( )
Rewrite cell_draw_line
Rewrite many hardcoded size definitions
Refrence point now draw as bitmap (less size, more costumable)
Fix drag marker (now correct search closest index in search_nearest_index)
Rewrite plot_into_index, now correct use size definitions, moe

ui.c
Small rewrite keyboard definitions, for use less flash size
Define KP_WIDTH, KP_HEIGHT for set key size
Better look some big font symvols

All:
use static fore some local functions (use less space on calls)
replace tabs on spaces (code style)
Use M_PI from math.h fore define pi value

Fix printf on print HEX values
2020-02-22 10:50:54 +03:00
DiSlord 1ec7faca2a Fix warning
Use __REV16 instruction for set display x y coordinates (faster and more compact)
2020-01-29 23:47:58 +03:00
ВшЫдщкв 90dc36418d Remove test code
Optimize size trace command function
2020-01-19 16:14:22 +03:00
ВшЫдщкв 6f666cf31b Change Font size (more readable)
Rework display spi driver:
 use DMA for read, write
 add blitBitmap functions
 Use DMA for color fill
 More correct SPI bus control
Move color definitions to nanovna.h
Some code optimization for speed and size (save about 3k bytes)
Change grid Y resolution to 10
Fix convert from float to int (fix some rounding errors on plot)
Disable unused HAL serial
Change battery icon
2020-01-19 11:16:18 +03:00
TT c7af840f53 feat: add feedback of lever mode 2019-11-17 11:00:07 +09:00
TT 7adba06333 chore: reduce foot-print of numfont20x24 2019-10-21 20:25:44 +09:00
TT dcbcfe162c chore: shrink 5x7 font 2019-10-21 20:25:44 +09:00
cho45 39b7fdf95e append version info screen to UI 2019-09-05 23:58:30 +09:00
cho45 1c4718ae4a implement capture command 2019-08-23 02:07:22 +09:00
TT c4cdc2cc07 omit unused code 2017-01-15 23:24:29 +09:00
TT 74cfdb93a3 arrange code, add notice at head of each file 2017-01-01 20:03:21 +09:00
TT a50517bf3f add keypad for freq and scale, add save menu 2016-12-04 16:19:31 +09:00
TT ea8b4d71c2 fix name ili9431 to ili9341 2016-11-05 11:52:50 +09:00
Renamed from ili9431.c (Browse further)